Report #46580
[research] Agent observability costs explode because telemetry payloads include massive, redundant prompt histories
Implement prompt caching telemetry and log only the diff/delta of the prompt history in traces, using the gen\_ai.usage.prompt\_tokens cached attributes to monitor cache hit rates.
Journey Context:
When tracing agents, developers often log the full messages array at every step. For an agent with a 100k context window, this means storing gigabytes of redundant telemetry per run, crushing observability budgets. Anthropic and OpenAI support prompt caching. By tracking cached\_tokens in your OTeL spans and only logging the new user/tool messages added at each step, you drastically reduce storage costs while still retaining the ability to reconstruct the full trace if needed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:39:36.062761+00:00— report_created — created