pub struct CurrentSpan { /* fields omitted */ }
👎 Deprecated since 0.2.18:
Will be removed in v0.3
Expand description
Tracks the currently executing span on a per-thread basis.
Returns a new CurrentSpan
.
Returns the Id
of the span in which the current thread is
executing, or None
if it is not inside of a span.
Records that the current thread has entered the span with the provided ID.
Records that the current thread has exited a span.
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the current Span
, returning an
Instrumented
wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.