Request IDs & Observability
Request IDs & Observability​
Use caller-generated and PayWise-generated request identifiers together for troubleshooting:
- Log the request ID on inbound traffic, along with headers that affect routing (environment, api key).
- Send
PW-request-idon requests as the caller-generated trace ID. - Record PayWise
request_idvalues returned in error payloads and any response correlation headers. - Surface mission-critical errors in dashboards, and correlate with Prometheus/Grafana alerts.
- When tracing distributed systems, annotate spans with both values so PayWise support can help join the dots.
Pairs well with our rate-limit headers; when you aggregate metrics per request ID you expose hotspots without storing sensitive payloads.