[][src]Struct opentelemetry::sdk::trace::config::Config

pub struct Config {
    pub default_sampler: Box<dyn Sampler>,
    pub id_generator: Box<dyn IdGenerator>,
    pub max_events_per_span: u32,
    pub max_attributes_per_span: u32,
    pub max_links_per_span: u32,
    pub resource: Arc<Resource>,
}

Tracer configuration

Fields

default_sampler: Box<dyn Sampler>

The sampler that the sdk should use

id_generator: Box<dyn IdGenerator>

The id generator that the sdk should use

max_events_per_span: u32

The max events that can be added to a Span.

max_attributes_per_span: u32

The max attributes that can be added to a Span.

max_links_per_span: u32

The max links that can be added to a Span.

resource: Arc<Resource>

Contains attributes representing an entity that produces telemetry.

Trait Implementations

impl Debug for Config[src]

impl Default for Config[src]

fn default() -> Self[src]

Create default global sdk configuration.

Auto Trait Implementations

impl !RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl !UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,