Skip to content

docs(otel): document litellm.request.route on the LLM call span - #1185

Merged
yucheng-berri merged 3 commits into
mainfrom
litellm_lit_6459_otel_request_route_docs
Sep 5, 2026
Merged

docs(otel): document litellm.request.route on the LLM call span#1185
yucheng-berri merged 3 commits into
mainfrom
litellm_lit_6459_otel_request_route_docs

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the litellm.request.route row to the OTel v2 LLM span attribute table. The key is emitted only on the proxy and carries the same value as the root SERVER span's http.route: the FastAPI route template on a normal route, the literal path on a passthrough prefix, and, when no server span exists (route excluded via OTEL_PYTHON_FASTAPI_EXCLUDED_URLS or FastAPI instrumentation not installed), the route the proxy recorded at auth. Pairs with BerriAI/litellm#39698 (Resolves LIT-6459)

Link to Devin session: https://app.devin.ai/sessions/8f826e7e7cf44af999aa5a354f95ef70
Open in Devin Desktop: https://app.devin.ai/desktop/session/8f826e7e7cf44af999aa5a354f95ef70?variant=devin
Requested by: @yucheng-berri

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
litellm Ready Ready Preview Sep 5, 2026 3:27am UTC

Request Review

The row promised the normalized inbound route. It carries the same string
the root span reports as http.route: the FastAPI route template, or the
literal path on a passthrough prefix.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@yucheng-berri
yucheng-berri merged commit 0274b69 into main Sep 5, 2026
4 checks passed
@yucheng-berri
yucheng-berri deleted the litellm_lit_6459_otel_request_route_docs branch September 5, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants