version-badge docs-badge license-badge

tower-request-id

A tiny [tower] ([hyper], [axum], [warp] etc) service to generate a random id for each incoming request.

Usage

After adding the [RequestIdLayer] into the [axum] middlewares the request id is available in the [http::Request::extensions()]. For the [tracing] integration, please refer to the [logging example].