Tracing APIs with X-Request-Id headers
W3C traceparent propagation and response correlation checked by ADP-030.
Correlation headers and probes
Tie customer-visible errors directly to backend distributed spans.
| Signal | Placement | Format or rule | Rule |
|---|---|---|---|
X-Request-Id | Every 2xx, 4xx, and 5xx header | Prefixed ULID/UUID echoed or generated | ADP-030 |
W3C traceparent | Internal hop headers | 00-<trace-id>-<span-id>-01 | ADP-030 |
RFC 9457 instance | Error JSON body | Embeds request URI or correlation ID | ADP-008 |
/healthz and /readyz | Unversioned probe routes | Exempt from business /v1 prefix | ADP-004 |
Correlated 500 RFC 9457 response
HTTP/1.1 500 Internal Server Error Content-Type: application/problem+json X-Request-Id: req_01J9Z4K8M2P7X3Q9W5V traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
Check header coverage in CI
ADP-030 flags operations missing documented correlation headers in api_validator.py.