Struct opentelemetry::sdk::trace::Builder
source · pub struct Builder { /* private fields */ }
Expand description
Builder for provider attributes.
Implementations§
source§impl Builder
impl Builder
sourcepub fn with_simple_exporter<T>(self, exporter: T) -> Builderwhere
T: SpanExporter + 'static,
pub fn with_simple_exporter<T>(self, exporter: T) -> Builderwhere T: SpanExporter + 'static,
The SpanExporter
that this provider should use.
sourcepub fn with_batch_exporter<T, R>(self, exporter: T, runtime: R) -> Builderwhere
T: SpanExporter + 'static,
R: RuntimeChannel<BatchMessage>,
pub fn with_batch_exporter<T, R>(self, exporter: T, runtime: R) -> Builderwhere T: SpanExporter + 'static, R: RuntimeChannel<BatchMessage>,
The SpanExporter
setup using a default BatchSpanProcessor
that this provider should use.
sourcepub fn with_span_processor<T>(self, processor: T) -> Builderwhere
T: SpanProcessor + 'static,
pub fn with_span_processor<T>(self, processor: T) -> Builderwhere T: SpanProcessor + 'static,
The SpanProcessor
that this provider should use.
sourcepub fn with_config(self, config: Config) -> Builder
pub fn with_config(self, config: Config) -> Builder
The sdk crate::trace::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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more