logo
pub struct Data<'a> { /* private fields */ }
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.