Trait SpanExt

Source
pub trait SpanExt
where Self: Into<Span>,
{ // Required methods fn verbose(self) -> Span; fn long_running(self) -> Span; }
Expand description

Convert a value into a span and set attributes.

Required Methods§

Source

fn verbose(self) -> Span

Convert self into a span and set the verbose attribute.

See Span::verbose for more details.

Source

fn long_running(self) -> Span

Convert self into a span and set the long-running attribute.

See Span::long_running for more details.

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<T: Into<Span>> SpanExt for T