pub struct Span { /* private fields */ }

Implementations

Creates a new Span, child of this one.

Note: There is no need to keep the parent Span alive while the children is alive. The protocol allows for parents that don’t completely overlap their children.

Creates a new Span, child of this one, with a specific ID.

Returns the trace ID originally passed when building this span.

Returns the span ID originally passed when building this span.

Add a log entry to this span.

Adds a “followfrom” relation ship towards another span of (potentially) another trace.

Adds a “followfrom” relation ship towards another span of (potentially) another trace.

Add a new key-value tag to this span.

Add a new key-value tag to this span.

Modifies the start time of this span.

Note: This method can be useful in order to generate a span with a trace_id that is only know after the span should have started. To do so, call StartTime::now when the span should start, create the span once you know the ̀trace_id, then call this method.

Modifies the start time of this span.

Note: This method can be useful in order to generate a span with a trace_id that is only know after the span should have started. To do so, call StartTime::now when the span should start, create the span once you know the ̀trace_id, then call this method.

Trait Implementations

Executes the destructor for this 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

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.