Struct tracing_subscriber::registry::Data[][src]

pub struct Data<'a> { /* fields omitted */ }
This is supported on crate features registry and std only.
Expand description

Span data stored in a Registry.

The registry stores well-known data defined by tracing: span relationships, metadata and reference counts. Additional user-defined data provided by Layers, such as formatted fields, metrics, or distributed traces should be stored in the extensions typemap.

Trait Implementations

Formats the value using the given formatter. Read more

Returns this span’s ID.

Returns a reference to the span’s Metadata.

Returns a reference to the ID

Returns a reference to this span’s Extensions. Read more

Returns a mutable reference to this span’s Extensions. Read more

Returns true if this span is enabled for the per-layer filter corresponding to the provided FilterId. 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