Tail sampling keeps partial traces with missing spans
AdvancedTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer
Likely causes → Spans of one trace land on different collector replicas, each deciding independently; or decision_wait is shorter than the trace duration.
Diagnose → Compare span counts for one trace across collectors; check otelcol_processor_tail_sampling_sampling_late_span_age.
Fix → Two-tier setup: agents → loadbalancing exporter by trace ID → sampling collectors. Raise decision_wait (e.g. 30s) and num_traces to fit memory.
Prevent → Size sampling tier for peak spans/sec × decision_wait.
More on Tracing, OpenTelemetry and CloudWatch
Traces show only the frontend span; downstream services start new tracesIntermediateTraces break at the API gateway / ingress controllerIntermediateNo traces at all arrive; the app logs `Failed to export spans. The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:4317`BeginnerSDK error `Unimplemented` / `404 Not Found` when exporting to the collectorIntermediateOTel collector logs `Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "traces", "name": "otlp", "error": "rpc error: code = Unavailable desc = connection error"}`IntermediateCollector logs `Dropping data because sending_queue is full`Advanced