Skip to main content
.env

Usage

How it works

  • A unique UUID per request
  • The incoming X-Request-ID header is used if present, for distributed tracing
  • The ID is added to response headers automatically
  • Available via get_request_id() or g.request_id

JSON log format

Because the request ID travels in both the response header and every log line, a user reporting a failure can hand you the header value and you can find every log line for that request.