Report #94424
[research] Long-running agent traces timeout or drop spans, making debugging impossible
Configure trace exporters to flush spans incrementally rather than at the end of the agent run. Set trace context timeouts to exceed the maximum agent loop duration, and use span links to connect asynchronous sub-tasks rather than relying on a single massive parent span.
Journey Context:
Agents can run for minutes or hours. Standard observability setups often buffer spans and flush on exit, or hit HTTP timeouts on the trace context. If the agent crashes or is killed, the entire trace is lost. Incremental flushing ensures you can observe the agent while it is running, which is critical for catching infinite loops in real-time.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:04:23.349650+00:00— report_created — created