[−][src]Struct opentelemetry::sdk::trace::Config
This is supported on crate feature
trace
only.Tracer configuration
Fields
default_sampler: Box<dyn ShouldSample>
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.
Implementations
impl Config
[src]
pub fn with_default_sampler<T: ShouldSample + 'static>(self, sampler: T) -> Self
[src]
Specify the default sampler to be used.
pub fn with_id_generator<T: IdGenerator + 'static>(
self,
id_generator: T
) -> Self
[src]
self,
id_generator: T
) -> Self
Specify the id generator to be used.
pub fn with_max_events_per_span(self, max_events: u32) -> Self
[src]
Specify the number of events to be recorded per span.
pub fn with_max_attributes_per_span(self, max_attributes: u32) -> Self
[src]
Specify the number of attributes to be recorded per span.
pub fn with_max_links_per_span(self, max_links: u32) -> Self
[src]
Specify the number of events to be recorded per span.
pub fn with_resource(self, resource: Resource) -> Self
[src]
Specify the attributes representing the entity that produces telemetry
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Config
[src]
impl Send for Config
[src]
impl Sync for Config
[src]
impl Unpin for Config
[src]
impl !UnwindSafe for Config
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,