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
- A newtype around
ulid::Ulid
- Layer to apply
RequestIdService
middleware.