Report #10184
[research] Disconnected logs between application logic and LLM provider traces
Instrument the agent orchestrator with OpenTelemetry \(OTEL\) spans, and inject the trace\_id and span\_id into the LLM provider's custom metadata headers. This stitches the application trace and the LLM provider trace together for cross-platform correlation.
Journey Context:
When an agent fails, you often have two separate dashboards: your app's APM showing the orchestrator flow, and the LLM provider's dashboard showing the prompt/completion. Correlating them manually by timestamp is a nightmare. By propagating OTEL trace context into the LLM calls, you can click directly from your app span to the exact LLM call, saving hours of debugging.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T10:06:19.818860+00:00— report_created — created