logo
pub struct Config {
    pub sampler: Box<dyn ShouldSample + 'static, Global>,
    pub id_generator: Box<dyn IdGenerator + 'static, Global>,
    pub span_limits: SpanLimits,
    pub resource: Cow<'static, Resource>,
}
Available on crate feature trace only.
Expand description

Tracer configuration

Fields

sampler: Box<dyn ShouldSample + 'static, Global>

The sampler that the sdk should use

id_generator: Box<dyn IdGenerator + 'static, Global>

The id generator that the sdk should use

span_limits: SpanLimits

span limits

resource: Cow<'static, Resource>

Contains attributes representing an entity that produces telemetry.

Implementations

Specify the sampler to be used.

Specify the id generator to be used.

Specify the number of events to be recorded per span.

Specify the number of attributes to be recorded per span.

Specify the number of events to be recorded per span.

Specify the number of attributes one event can have.

Specify the number of attributes one link can have.

Specify all limit via the span_limits

Specify the attributes representing the entity that produces telemetry

Trait Implementations

Formats the value using the given formatter. Read more

Create default global sdk configuration.

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.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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.