mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-26 03:14:08 -05:00
[PR #23660] [CLOSED] feat(otel): add W3C TraceContext propagator for distributed tracing #130972
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23660
Author: @runixer
Created: 4/13/2026
Status: ❌ Closed
Base:
dev← Head:feat/otel-trace-propagation📝 Commits (1)
60a85eefeat(otel): add W3C TraceContext propagator for distributed trace correlation📊 Changes
1 file changed (+9 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/telemetry/setup.py(+9 -0)📄 Description
Description
Open WebUI configures a
TracerProviderand instruments HTTP clients, but never configures a propagator — sotraceparentheaders are never injected into outgoing requests. Downstream services (LLM backends, etc.) start isolated traces instead of joining the parent trace.This PR configures the standard W3C TraceContext + Baggage propagators so that the existing
requests/httpx/aiohttpinstrumentation propagates trace context automatically.Added
Fixed
Dependencies
No changes — all classes come from
opentelemetry-api, already in requirements.Testing
Deployed in a Kubernetes environment with Open WebUI → LiteLLM → vLLM. Before: three disconnected traces. After: single end-to-end trace across all three services. Running in production for ~5 days without issues.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.