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.

SignalPlacementFormat or ruleRule
X-Request-IdEvery 2xx, 4xx, and 5xx headerPrefixed ULID/UUID echoed or generatedADP-030
W3C traceparentInternal hop headers00-<trace-id>-<span-id>-01ADP-030
RFC 9457 instanceError JSON bodyEmbeds request URI or correlation IDADP-008
/healthz and /readyzUnversioned probe routesExempt from business /v1 prefixADP-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.