Trait tower_http::trace::MakeSpan[][src]

pub trait MakeSpan<B> {
    fn make_span(&mut self, request: &Request<B>) -> Span;
}
This is supported on crate feature trace only.
Expand description

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

Required methods

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

Make a span from a request.

Implementations on Foreign Types

impl<B> MakeSpan<B> for Span[src]

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

Implementors

impl<B> MakeSpan<B> for DefaultMakeSpan[src]

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

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

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