Report #11315
[research] Unstructured agent logs make it impossible to trace tool execution latency or token consumption across multi-step runs
Instrument agent runs with OpenTelemetry \(OTEL\) spans, attaching token usage, tool names, and model versions as span attributes to leverage standard observability tooling.
Journey Context:
Developers often rely on print\(\) or basic text logging. This makes it impossible to answer 'How long did the tool execution take vs. the LLM inference?' or 'Which step consumed the most tokens?'. By mapping agent steps to OTEL traces and spans, you get out-of-the-box dashboards, distributed tracing, and alerting, treating the agent like any other microservice.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:06:36.980500+00:00— report_created — created