Struct zipkin::span::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

A builder for Spans.

Implementations§

Sets the trace ID of the span.

Sets the name of the span.

Defaults to None.

Sets the ID of the span’s parent.

Defaults to None.

Sets the ID of the span.

Sets the kind of the span.

Defaults to None.

Sets the time of the beginning of the span.

Defaults to None.

Sets the duration of the span.

Defaults to None.

Sets the debug state of the span.

Defaults to false.

Sets the shared state of the span.

Defaults to false.

Sets the local endpoint of the span.

Defaults to None.

Sets the remote endpoint of the span.

Defaults to None.

Adds an annotation to the span.

Adds multiple annotations to the span.

Adds a tag to the span.

As multiple tags to the span.

Constructs a Span.

Panics

Panics if trace_id or id was not set.

Trait Implementations§

Converts to this type from the input type.

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.