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,