Observability

OpenTelemetry Trace Debugging Guide

Debug missing or incomplete OpenTelemetry traces by checking context propagation, sampling, exporters and service boundaries in order. Last updated September 17, 2026.

Debug missing or incomplete OpenTelemetry traces by checking context propagation, sampling, exporters and service boundaries in order. This reference is written for developers who need practical validation behavior, reviewable rules and safe examples rather than copied snippets with no explanation.

Recommended workflow

StepWhy it matters
Verify trace headersConfirm traceparent reaches every HTTP, queue and worker boundary.
Inspect span creationCheck parent-child relationships, status and end timestamps before blaming the backend.
Check samplingHead and tail sampling can intentionally remove traces or partial paths.
Follow the export pathReview SDK queues, collector logs and backend ingestion errors separately.

Starter snippet

request -> trace context -> child spans -> collector -> exporter -> backend

Review checks

Common mistakes

Validation should help users correct input while protecting systems from bad data. Keep syntax checks, product policy, security review and deliverability checks separate.

Related Formalint references

Continue with Structured Logging Guide, Api Correlation Id Logging Guide, Application Health Check Guide.