Skip to main content

Module request_id

Module request_id 

Source
Expand description

Request id middleware.

The middleware assigns a UUID v4 to every request, stores it in request extensions, adds it to the X-Request-ID response header, and instruments the downstream service call with a tracing span containing request metadata.

Structsยง

RequestId
Request id value stored in Actix request extensions.
RequestIdMiddleware
Actix middleware that creates and propagates request ids.
RequestIdService
Service wrapper installed by RequestIdMiddleware.