#tower #hyper #axum #warp

tower-request-id

A tower (hyper, axum, warp) service to add a unique id for every request

3 unstable releases

0.2.1 Dec 19, 2022
0.2.0 Nov 4, 2021
0.1.0 Sep 29, 2021

#153 in HTTP server

Download history 507/week @ 2022-11-30 806/week @ 2022-12-07 513/week @ 2022-12-14 217/week @ 2022-12-21 240/week @ 2022-12-28 694/week @ 2023-01-04 540/week @ 2023-01-11 729/week @ 2023-01-18 590/week @ 2023-01-25 383/week @ 2023-02-01 377/week @ 2023-02-08 607/week @ 2023-02-15 722/week @ 2023-02-22 312/week @ 2023-03-01 328/week @ 2023-03-08 1307/week @ 2023-03-15

2,752 downloads per month

MIT license

9KB
62 lines

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.

Dependencies

~625KB