Prompt
Our tracing setup breaks when requests cross services
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
If requests “cross services” and tracing breaks, the usual causes are:
-
Trace context isn’t being propagated
- Service A creates a trace/span, but the outbound request to Service B doesn’t include trace headers.
- Make sure your client automatically injects headers like:
traceparent/tracestate(W3C standard)- or
X-B3-TraceId,X-B3-SpanId, etc. if you use B3
-
The services use different propagation formats
- One service may use W3C, another B3, and they don’t understand each other.
- Standardize on one format across all services, or configure both.
-
Instrumentation is incomplete on one side
- Outbound HTTP/gRPC clients may be instrumented, but servers aren’t, or vice versa.
- Both the client and server sides need tracing instrumentation.
-
Async / background work loses context
- If a request hands work off to a queue, thread pool, or async task, context may not automatically follow.
- You may need explicit context propagation across threads, tasks, or message metadata.
-
Proxy / gateway strips headers
- Load balancers, API gateways, or service meshes may drop or rewrite tracing headers.
- Check whether the relevant headers are allowed through.
-
Sampling or export issues
- The trace may actually exist, but spans aren’t exported from one service.
- Verify sampler settings, exporter config, and collector connectivity.
What to check first
- Inspect an outbound request from Service A and confirm trace headers are present.
- Inspect Service B’s inbound request and confirm it receives the same trace ID.
- Verify both services use the same propagator format.
- Confirm client/server auto-instrumentation is enabled.
- Check any gateway/proxy in between.
Quick fix pattern
If you’re using OpenTelemetry, ensure:
- a global propagator is configured consistently
- both HTTP client and server instrumentation are enabled
- your runtime/framework supports context propagation across async boundaries
If you want, I can help debug this more concretely if you tell me:
- language/framework for each service
- tracing library (OpenTelemetry, Zipkin, Datadog, Jaeger, etc.)
- transport (HTTP, gRPC, messaging)
- whether there’s a gateway/proxy between services