tower_http::trace

Trait MakeSpan

Source
pub trait MakeSpan<B> {
    // Required method
    fn make_span(&mut self, request: &Request<B>) -> Span;
}
Available on crate feature trace only.
Expand description

Trait used to generate Spans from requests. Trace wraps all request handling in this span.

Required Methods§

Source

fn make_span(&mut self, request: &Request<B>) -> Span

Make a span from a request.

Implementations on Foreign Types§

Source§

impl<B> MakeSpan<B> for Span

Source§

fn make_span(&mut self, _request: &Request<B>) -> Span

Implementors§

Source§

impl<B> MakeSpan<B> for DefaultMakeSpan

Source§

impl<F, B> MakeSpan<B> for F
where F: FnMut(&Request<B>) -> Span,