Report #103598
[research] Standard APM shows green health checks while agent runs fail silently because traces don't capture LLM calls, tool calls, and handoffs
Emit OpenTelemetry GenAI semantic-convention spans: invoke\_agent for each agent run, chat for each LLM call, execute\_tool for each tool or MCP invocation, with attributes for model name, token usage, finish reasons, and tool arguments. Propagate W3C Trace Context across async workers, queues, and MCP servers.
Journey Context:
Agents are not HTTP request/response systems; they are hierarchical graphs of planning, retrieval, tool use, and sub-agent delegation. Traditional APM collapses all of that into one span. The OpenTelemetry GenAI SIG defines standard span types and attributes so any backend—Langfuse, Braintrust, Datadog, Grafana—can render agent runs consistently. As of 2026 the conventions are still Development stability, so pin a version and use OTEL\_SEMCONV\_STABILITY\_OPT\_IN to manage transitions. The immediate payoff is debugging: when a task fails you can walk the trace to the exact LLM call or tool that misbehaved.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:40:28.680464+00:00— report_created — created