actix-web-reqid
Tool to work with Request ID(UUID).
This crate is based on timtonk/actix-web-middleware-requestid.
Usage
Add the middleware to your Actix Web application to automatically generate and attach a UUID request ID to each incoming request.
1. Add the middleware
use ;
use RequestIDWrapper;
async
2. Extract the request ID in your handler
use ;
use RequestID;
async
3. Error handling
If the request ID is missing, the extractor will return a 400 Bad Request error.
This middleware helps you trace requests by assigning a unique UUID to each request and making it accessible in your handlers.