logo
pub struct BoxedSpan(_);
Expand description

Wraps the BoxedTracer’s Span so it can be used generically by applications without knowing the underlying type.

Trait Implementations

Formats the value using the given formatter. Read more

Records events at a specific time in the context of a given Span.

Note that the OpenTelemetry project documents certain “standard event names and keys” which have prescribed semantic meanings.

Returns the SpanContext for the given Span.

Returns true if this Span is recording information like events with the add_event operation, attributes using set_attributes, status with set_status, etc.

Sets a single Attribute where the attribute properties are passed as arguments.

Note that the OpenTelemetry project documents certain “standard attributes” that have prescribed semantic meanings.

Sets the status of the Span. If used, this will override the default Span status, which is Unset.

Updates the Span’s name.

Finishes the span with given timestamp.

An API to record events in the context of a given Span. Read more
Convenience method to record an exception/error as an Event Read more
Convenience method to record a exception/error as an Event with custom stacktrace Read more
Finishes the Span. 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.