tower-http-tracing
Tower tracing middleware to annotate every HTTP request with tracing's span
Example
Below is illustration of how to initialize request layer for passing into your service
use IpAddr;
use HttpRequestLayer;
//Logic to extract client ip has to be written by user
//You can use utilities in separate crate to design this logic:
//https://docs.rs/http-ip/latest/http_ip/
make_request_spanner!;
let layer = new.with_extract_client_ip
.with_inspect_headers;
//Use above layer in your service