Report #41999
[research] Cannot identify which specific agent step or tool is consuming the majority of token budget
Enforce strict trace context propagation and tag every LLM completion span with agent\_name, tool\_name, and step\_index. Aggregate token usage by these tags in your observability backend.
Journey Context:
Generic LLM API logging just shows total tokens per API key. In a multi-agent system, this is useless for debugging. You need distributed tracing where the trace\_id links all steps of a single user request, and span attributes break down token consumption. This allows you to pinpoint exactly which tool's output context is bloating the prompt and burning tokens.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T00:58:13.918981+00:00— report_created — created