TECHNOLOGY

LiteLLM adds a proxy default for Langfuse key and team span scope

In this article
THE QUICK TAKE

Inspect each Langfuse destination with default and explicit span scopes; proxy-wide tracing settings and destination defaults are different configuration boundaries.

The November 15 LiteLLM v1.111.0-dev.4 prerelease adds a destination-specific default for Langfuse span scope under OTel v2. Explicit key or team scope still wins. Operators should distinguish the proxy’s own tracing configuration from the defaults applied to delegated destinations, since one successful trace export does not prove each destination received the intended span tree.

Observe a destination, not only a trace

Create two synthetic key destinations and a proxy-level exporter with distinguishable test credentials. Send one harmless request and inspect each received span set. A trace appearing in the proxy’s project cannot establish the key destination’s scope. Record the exporter identity and span parentage so the application can distinguish a full request tree from a model-only view even when both contain the same model-call span.

Explicit scope should override the default

Set the new destination default to model-only and give one test key an explicit full scope. Compare both destinations, then remove the explicit value and repeat. This targets precedence rather than simply checking the setting parses. Keep team-level configurations in the matrix if the application uses them. A global fallback that overwrites an explicit destination choice would make central configuration less predictable, even if total telemetry volume falls.

Invalid settings have a documented fallback

Exercise an unset value, a valid value and an invalid synthetic value through supported configuration sources. The PR keeps full scope when unset and warns before falling back for an invalid value. Inspect actual output rather than relying only on a warning line. The environment variable’s destination-specific name matters; a similarly named proxy scope setting is not evidence that the new default was applied.

Scope reduction is an observability choice

Verify the model-only destination still supports the application’s intended correlation, while the full destination retains the diagnostic parent chain it needs. Count exported spans and inspect representative contents separately. The release adds configuration reach; it does not prove a chosen scope is sufficient for every investigation. A reviewable result names each destination’s policy, explicit exceptions and observed tree, without confusing fewer spans with fewer model calls or lower model cost.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles