Skip to main content
Tracing a failure through the logs is much easier when every line from the same request carries the same ID. Feather adds one, and turns on JSON logging in production.
.env

Usage

How it works

  • A unique UUID per request
  • The incoming X-Request-ID header is reused when present, for distributed tracing
  • The ID goes into the response headers automatically
  • Read it with get_request_id() or g.request_id

JSON log format

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