[−][src]Trait opentelemetry::api::trace::futures::Instrument
Extension trait allowing futures, streams, sinks, and executors to be traced with a span.
Provided methods
fn instrument<S: Span>(self, span: S) -> Instrumented<Self, S>
Traces this type with the provided Span
, returning a Instrumented
wrapper.
fn in_active_span<T: Tracer>(self, tracer: T) -> Instrumented<Self, T::Span>
Traces this type with the provided Tracer
's active span, returning a Instrumented
wrapper.