Trait trace_tools::Observe
source · [−]pub trait Observe: Sized {
fn observe(self, name: &str) -> Instrumented<Self>;
}Expand description
Instruments a future with a tracing span.
This span is given the trace_tools::observe target, so that it can be more easily filtered
in any subscribers or subscriber layers. It also records the future’s calling location
in its fields.
Required methods
fn observe(self, name: &str) -> Instrumented<Self>
fn observe(self, name: &str) -> Instrumented<Self>
Instruments Self with a tracing span, returning Instrumented<Self>.