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

A builder type for TraceContexts.

Implementations§

Sets the trace ID of this context.

Sets the ID of the parent span of this context.

Defaults to None.

Sets the ID of the span of this context.

Sets the sampling flags for this context.

Sets the sampling request for this context.

Defaults to None.

Sets the debug flag for this request.

Defaults to false.

Constructs a TraceContext.

Panics

Panics if trace_id or span_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.