.env
Usage
How it works
- A unique UUID per request
- The incoming
X-Request-IDheader is used if present, for distributed tracing - The ID is added to response headers automatically
- Available via
get_request_id()org.request_id
A unique ID on every request and structured JSON logging, so a production incident is greppable.
X-Request-ID header is used if present, for distributed tracingget_request_id() or g.request_id