Skip to main content

Module request_id

Module request_id 

Source
Expand description

X-Request-Id: a valid incoming ID is kept, otherwise the request gets a req_ ID. Error documents repeat it in meta.request_id.

Laravel for Rust assigns its own ID before any middleware runs and keeps an incoming one under the same rules, but generates 32 hex digits. Fusion Stack generates req_ and a lowercase ULID instead, as the PHP package does, and sends that. The framework’s own log lines for a request that arrived without an ID still carry the framework’s ID.

Structs§

RequestId
The request’s Fusion Stack ID, a request extension. Read it with of.

Constants§

HEADER
The header that carries the ID, on the request and on the response.

Functions§

of
The request’s ID: the one assigned by the middleware, or else a valid incoming one, or else a new one.