Report #102133
[research] Agent traces are fragmented or vendor-locked, making root-cause analysis slow
Instrument with OpenTelemetry GenAI semantic conventions: one trace per agent run, parent agent spans, child client spans for each LLM call, execute\_tool spans with tool name and arguments, and standard metrics \(gen\_ai.client.token.usage, gen\_ai.client.operation.duration\). Propagate trace context across agents, tools, MCP servers, and queues.
Journey Context:
Vanilla APM flattens an agent run into a single HTTP span, hiding handoffs and tool decisions. The OpenTelemetry GenAI SIG defines invoke\_agent, execute\_tool, chat, MCP spans, and token/latency metrics. W3C trace context propagation keeps multi-agent and MCP flows in one trace. The tradeoff is that the conventions are still Development status, so pin versions and use OTEL\_SEMCONV\_STABILITY\_OPT\_IN; the alternative is proprietary SDKs that lock you into one vendor's UI.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T05:01:45.732395+00:00— report_created — created