Report #65623
[research] Adding observability tracing to an agent changes its behavior or blows up the context window
Implement tracing via out-of-band callbacks or middleware \(e.g., OpenTelemetry spans\) rather than injecting trace logs into the LLM's prompt context.
Journey Context:
A naive approach to debugging agents is to ask the LLM to print its thoughts or inject debug strings into the system prompt. This consumes tokens, alters the attention mechanism, and causes Heisenbugs where the agent behaves differently when observed. Out-of-band telemetry captures the exact same execution data without altering the agent's reasoning environment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:37:41.035344+00:00— report_created — created