Struct tracing_subscriber::CurrentSpan[][src]

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.

Implementations

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.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more