Trait rama::http::layer::trace::MakeSpan

pub trait MakeSpan<B>:
    Send
    + Sync
    + 'static {
    // Required method
    fn make_span(&self, request: &Request<B>) -> Span;
}
Expand description

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

Required Methods§

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

Make a span from a request.

Implementations on Foreign Types§

§

impl<B> MakeSpan<B> for Span

§

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

Implementors§

§

impl<B> MakeSpan<B> for DefaultMakeSpan

§

impl<F, B> MakeSpan<B> for F
where F: Fn(&Request<B>) -> Span + Send + Sync + 'static,