[−][src]Function warp::filters::trace::request
pub fn request() -> Trace<impl Fn(Info) -> Span + Clone>
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());