pub struct Builder { /* private fields */ }
Expand description
Builder for provider attributes.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn with_simple_exporter<T: SpanExporter + 'static>(self, exporter: T) -> Self
pub fn with_simple_exporter<T: SpanExporter + 'static>(self, exporter: T) -> Self
The SpanExporter
that this provider should use.
sourcepub fn with_batch_exporter<T: SpanExporter + 'static, R: TraceRuntime>(
self,
exporter: T,
runtime: R
) -> Self
pub fn with_batch_exporter<T: SpanExporter + 'static, R: TraceRuntime>(
self,
exporter: T,
runtime: R
) -> Self
The SpanExporter
setup using a default BatchSpanProcessor
that this provider should use.
sourcepub fn with_span_processor<T: SpanProcessor + 'static>(
self,
processor: T
) -> Self
pub fn with_span_processor<T: SpanProcessor + 'static>(
self,
processor: T
) -> Self
The SpanProcessor
that this provider should use.
sourcepub fn with_config(self, config: Config) -> Self
pub fn with_config(self, config: Config) -> Self
The sdk Config
that this provider will use.
sourcepub fn build(self) -> TracerProvider
pub fn build(self) -> TracerProvider
Create a new provider from this configuration.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more