LlamaIndex

LlamaIndex OpenTelemetry Span Context Loss

warning
reliabilityUpdated Jun 9, 2018

LlamaIndex async operations and cross-agent handoffs can lose trace context, breaking distributed tracing and preventing end-to-end visibility of multi-step workflows.

How to detect:

Detect broken trace continuity by monitoring for spans missing parent_span_id in multi-agent workflows, or traces with unexpectedly short span counts. Alert when trace depth doesn't match expected agent interaction depth.

Recommended action:

Ensure OpenTelemetry context propagation across async calls by using proper instrumentation libraries. Embed trace IDs in all LLM calls and agent operations. Validate that custom spans include correct parent context. For serverless, explicitly pass trace context between function invocations.