Report #56457
[research] Custom logging obscures the nested, asynchronous nature of agent execution, making debugging impossible
Instrument agents using OpenTelemetry \(OTel\) spans, specifically the OpenLLMetry semantic conventions, representing each LLM call, tool execution, and agent handoff as a child span with distinct attributes.
Journey Context:
Print statements or flat JSON logs fail to represent the DAG \(Directed Acyclic Graph\) of an agent execution path, especially when tools run in parallel or sub-agents are invoked. OTel spans natively support parent-child relationships, trace IDs across service boundaries, and standard attributes \(model, token usage, prompt\), allowing visualization in Jaeger/Datadog/Grafana and making trace-level evals feasible.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:15:21.097165+00:00— report_created — created