docs: add OpenTelemetry v2 tracing guide - #260
Merged
Merged
Conversation
Add a user-facing guide for the opt-in OTel v2 instrumentation: what it offers, how to enable it (LITELLM_OTEL_V2), generic OTLP setup, vendor presets (Arize, Phoenix, Langfuse, Weave, Langtrace, Levo, AgentOps), content-capture control, excluded routes, and a config reference. Also cross-link it from the existing OpenTelemetry doc.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
yassin-berriai
marked this pull request as ready for review
May 30, 2026 06:10
yassin-berriai
enabled auto-merge (squash)
May 30, 2026 06:10
5 tasks
ryan-crabbe-berri
approved these changes
May 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a user-facing documentation page for the opt-in OpenTelemetry v2 instrumentation introduced in BerriAI/litellm#28909.
The new page (
docs/observability/opentelemetry_v2.md) is written for LiteLLM users and kept simple and example-driven, covering:opentelemetry-instrumentation-fastapipackage.LITELLM_OTEL_V2=trueand sending to any OTLP collector (HTTP/gRPC/console tabs).OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT.Also adds a short cross-link admonition from the existing OpenTelemetry doc so users discover v2.
The Observability sidebar is autogenerated from the
docs/observabilitydirectory, so the new page is picked up automatically — nosidebars.jschange needed.Notes
config.py,mount.py).https://claude.ai/code/session_01Udn22qopa89uH2b6jQbngU
Generated by Claude Code