.env
Usage
How it works
- A unique UUID per request
- The incoming
X-Request-IDheader is reused when present, for distributed tracing - The ID goes into the response headers automatically
- Read it with
get_request_id()org.request_id
Every request gets an ID that shows up in the response headers and in every log line it produces.
X-Request-ID header is reused when present, for distributed tracingget_request_id() or g.request_id