Crate tower_request_id

Crate tower_request_id 

Source
Expand description

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.

Structs§

RequestId
A newtype around ulid::Ulid
RequestIdLayer
Layer to apply RequestIdService middleware.
RequestIdService