pub fn request() -> Trace<impl Fn(Info<'_>) -> Span + Clone>
Expand description
Create a wrapping filter that instruments every request with a tracing
Span
at the INFO
level, containing a summary of the request.
Additionally, if the DEBUG
level is enabled, the span will contain an
event recording the request’s headers.
§Example
use warp::Filter;
let route = warp::any()
.map(warp::reply)
.with(warp::trace::request());