🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing_tower

Trait InstrumentableService

Source
pub trait InstrumentableService<Request>
where Self: Service<Request> + Sized,
{ // Provided methods fn instrument<G>(self, svc_span: G) -> InstrumentedService<Self, Request> where G: GetSpan<Self>, Request: Debug { ... } fn trace_requests<G>(self, get_span: G) -> Service<Self, Request, G> where G: GetSpan<Request> + Clone { ... } fn trace_service<G>(self, get_span: G) -> Service<Self> where G: GetSpan<Self> { ... } }

Provided Methods§

Source

fn instrument<G>(self, svc_span: G) -> InstrumentedService<Self, Request>
where G: GetSpan<Self>, Request: Debug,

Source

fn trace_requests<G>(self, get_span: G) -> Service<Self, Request, G>
where G: GetSpan<Request> + Clone,

Source

fn trace_service<G>(self, get_span: G) -> Service<Self>
where G: GetSpan<Self>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S, R> InstrumentableService<R> for S
where S: Service<R> + Sized,