Prompt
why are my request IDs not matching across services in the log platform?
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
Request IDs usually stop matching across services for one of a few reasons:
-
The ID is not actually being propagated
- Service A generates a request ID, but Service B creates a new one instead of reusing the incoming header.
- Common with missing middleware or custom HTTP clients that don’t forward headers like
X-Request-ID,traceparent, orX-Correlation-ID.
-
Different services are using different IDs
- One service logs an ingress request ID.
- Another logs an internal span ID, trace ID, or application-generated correlation ID.
- These look similar in the log platform but are not the same identifier.
-
Header normalization / casing / renaming issues
- The upstream service sends
X-Request-Id, but downstream expectsx-request-idor a different header name. - Proxies / gateways may strip or rename headers.
- The upstream service sends
-
Load balancers or gateways are terminating context
- API gateways, service meshes, or reverse proxies may create their own request IDs and not forward the original one unless explicitly configured.
-
Asynchronous processing breaks simple request continuity
- If a request queues a job, the worker may log a new ID unless the original correlation context is passed along.
-
Multi-tracing systems are mixed
- Some services use one observability standard (e.g. OpenTelemetry
trace_id), others use a legacy request ID. - In your log platform, those fields won’t line up unless you map them consistently.
- Some services use one observability standard (e.g. OpenTelemetry
-
Log ingestion is parsing the wrong field
- The log platform may be extracting
request_idfrom one service andtrace_idfrom another, or pulling from different JSON keys / message formats.
- The log platform may be extracting
What to check
- Verify the exact header/key being used end-to-end.
- Confirm each service forwards incoming request headers to outbound calls.
- Check gateway/proxy configuration for header passthrough.
- Make sure logs from all services use the same correlation field name.
- If using OpenTelemetry, ensure all services share the same trace context propagation.
Quick diagnostic
Pick one user request and inspect:
- Incoming request headers at service A
- Outgoing request headers from service A to service B
- Incoming request headers at service B
- The log fields indexed by your platform
If the value changes at any hop, that’s where propagation is breaking.
If you want, I can help you debug this for a specific stack like Kubernetes + NGINX + Java/Spring, Node.js, Python/FastAPI, or OpenTelemetry.