Observability / Editorial solution guide
Tail-sampled traces are missing spans
Inspect routing, decision windows, capacity, and earlier sampling before interpreting incomplete traces.
Read-only knowledge base · No public comments
Recognize the symptoms
A synthetic trace selected by a tail-sampling policy appears without expected spans. Instrumentation, context propagation, routing, decision timing, or loss may be involved. Record the trace, time, and scope before changing the pipeline.
Understand the likely causes
- Spans may be dropped before the tail decision, routed to different decision points, arrive late, or be lost under load. The trace or query may also fall outside retention. A missing span does not prove that the application operation did not occur.
Capture one known trace
Generate one authorized synthetic request with known service boundaries and record its trace identifier, expected spans, timestamp, and relevant collector and backend scope. Protect baggage and attributes in the shared record. Compare instrumentation and propagation at each boundary before assuming the sampler dropped a span. An absent backend record can also reflect query filters, access, retention, or earlier collection loss; preserve the original configuration and loss indicators.
Inspect routing and decision timing
Follow the same trace’s spans through the collector path and identify the actual decision point. Verify the implementation’s trace-aware routing contract and compare collector membership during the observation window. Inspect decision timing, late-span behavior, memory pressure, and reported drops using supported diagnostics. Spans arriving at different decision points or after a decision may yield incomplete evidence, but the exact behavior depends on the deployed implementation and configuration.
Test one bounded correction
In a disposable lab, reproduce known success, error, and delayed-span traces, then change one demonstrated routing or capacity issue at a time. Retain prior configuration and rollback criteria. Include an earlier head-sampling case: data dropped before the tail decision cannot be reconstructed by a later policy. Do not infer a full-population error rate from traces deliberately selected for errors. Compare with a suitable metric and document both populations.
Verify coverage and remaining limits
Repeat the original synthetic request after the approved correction and inspect expected relationships, decision timing, loss indicators, and backend visibility. Exercise a bounded load and a routing or collector restart scenario, then verify the original operational query. Record late-span and sampling limitations and any unresolved gaps; one complete trace is evidence for that test, not proof that every production trace will be complete. Assign an owner for continuing pipeline health monitoring.
Verify the fix
Repeat the synthetic trace and inspect routing, relationships, timing, loss, and backend visibility; record sampling and load limits.
Keep it from recurring
- Document routing contract, sampling policies, capacity, and ownership, and test late spans and collector changes before rollout.