Prompt
How do I troubleshoot traces that stop at one service
Latest observation
If traces consistently stop at one service, the issue is usually one of these:
- The service isn’t propagating trace context
- The downstream call isn’t instrumented
- Sampling/export is dropping spans
- There’s a network/auth/config issue with the telemetry pipeline
- The service is creating a new root span instead of continuing the trace
Here’s a practical troubleshooting checklist.
1) Confirm where the trace stops
Look at the last span in the trace and identify:
- the service name
- the operation being performed
- whether it is an inbound request handler or an outbound client call
If the trace ends at a server span, the problem is often in the outbound call from that service.
2) Check context propagation
Make sure the service forwards trace headers to downstream services.
Common propagation formats:
traceparent/tracestate(W3C Trace Context)- B3 headers
- Jaeger headers
- vendor-specific headers
Things to verify:
- The incoming request has trace headers.
- The service reads them correctly.
- The outbound HTTP/gRPC call injects them correctly.
- No proxy or gateway strips them.
3) Verify downstream instrumentation
If the next service is not instrumented, the trace will stop there.
Check whether the downstream service has:
- OpenTelemetry SDK or agent installed
- auto-instrumentation enabled
- correct framework integration
- active exporters configured
For example:
- HTTP server instrumentation
- HTTP client instrumentation
- gRPC client/server instrumentation
- database instrumentation, if the trace seems to stop during a DB call
4) Look for “new trace” behavior
Sometimes the service starts a new trace instead of continuing the old one.
Common causes:
- manual span creation without extracting context
- incorrect middleware order
- custom interceptors that ignore incoming headers
- misconfigured OpenTelemetry propagator
You want downstream spans to share the same trace_id, not a new one.
5) Check sampling
The trace may not actually be missing; it may be dropped.
Verify:
- head-based sampling rate
- tail-based sampling rules
- remote sampling config
- service-specific sampling overrides
- whether only some spans are sent due to local samplers
If the parent span exists but child spans don’t, ensure the child service isn’t sampling independently in a way that breaks trace continuity.
6) Inspect exporter and collector health
If spans are created but not exported, traces appear to stop.
Check:
- application logs for exporter errors
- OpenTelemetry Collector logs/metrics
- OTLP endpoint URL
- authentication credentials
- TLS settings
- queue/batch drops
- backpressure or timeouts
Useful signals:
spans_exportedspans_droppedexporter_queue_size- collector pipeline errors
7) Validate service and resource attributes
Incorrect attributes can make spans look disconnected in the backend.
Make sure each service has:
- correct
service.name - correct environment/namespace/version labels
- consistent resource attributes across instances
If service.name changes unexpectedly, traces can appear fragmented.
8) Check proxies, sidecars, and gateways
If the stop happens at a boundary:
- API gateway
- service mesh
- reverse proxy
- load balancer
- async message broker
verify that trace headers are preserved and propagated.
For async systems:
- context must be serialized into message headers
- consumers must extract context on receive
- not all tracing systems propagate automatically through queues
9) Reproduce with a simple end-to-end test
Create a minimal request path:
- Service A → Service B
- one outbound call
- one known propagated header
Then compare:
- headers received by B
- spans emitted by A and B
- trace IDs in backend
This helps isolate whether the issue is app code, infrastructure, or backend configuration.
10) Use logs and correlation
Add temporary logging around:
- incoming trace context extraction
- outgoing context injection
- span creation
- exporter results
Log:
- trace ID
- span ID
- parent span ID
- whether context was present
This often reveals the break point quickly.
Common root causes by stack
HTTP services
- Missing client-side instrumentation
- Custom HTTP client not instrumented
- Middleware order wrong
- Header filtering by proxy
gRPC
- Interceptors not installed
- Metadata propagation disabled
- Client/server interceptors mismatch
Java / .NET / Node / Python
- Auto-instrumentation not enabled for the outbound library
- Unsupported HTTP client version
- Context lost across threads/async tasks
- Manual spans without parent context
Messaging systems
- Trace context not put into message headers
- Consumer not extracting context
- Batch consumers creating unrelated spans
Quick diagnosis flow
- Does the last span have an outbound call?
- Are trace headers present on that outbound request?
- Does the downstream service receive them?
- Is the downstream service instrumented?
- Are spans exported successfully?
- Is sampling dropping the child spans?
- Are service names and attributes consistent?
If you want, I can also give you a language-specific checklist for Java, .NET, Python, Node.js, or Go.
Brands