Struct opentelemetry::sdk::trace::BatchSpanProcessorBuilder
source · pub struct BatchSpanProcessorBuilder<E, R> { /* private fields */ }
Available on crate feature
trace
only.Expand description
A builder for creating BatchSpanProcessor
instances.
Implementations§
source§impl<E, R> BatchSpanProcessorBuilder<E, R>where
E: SpanExporter + 'static,
R: TraceRuntime,
impl<E, R> BatchSpanProcessorBuilder<E, R>where E: SpanExporter + 'static, R: TraceRuntime,
sourcepub fn with_max_queue_size(self, size: usize) -> BatchSpanProcessorBuilder<E, R>
pub fn with_max_queue_size(self, size: usize) -> BatchSpanProcessorBuilder<E, R>
Set max queue size for batches
sourcepub fn with_scheduled_delay(
self,
delay: Duration
) -> BatchSpanProcessorBuilder<E, R>
pub fn with_scheduled_delay( self, delay: Duration ) -> BatchSpanProcessorBuilder<E, R>
Set scheduled delay for batches
sourcepub fn with_max_timeout(
self,
timeout: Duration
) -> BatchSpanProcessorBuilder<E, R>
pub fn with_max_timeout( self, timeout: Duration ) -> BatchSpanProcessorBuilder<E, R>
Set max timeout for exporting.
sourcepub fn with_max_export_batch_size(
self,
size: usize
) -> BatchSpanProcessorBuilder<E, R>
pub fn with_max_export_batch_size( self, size: usize ) -> BatchSpanProcessorBuilder<E, R>
Set max export size for batches, should always less than or equals to max queue size.
If input is larger than max queue size, will lower it to be equal to max queue size
sourcepub fn with_max_concurrent_exports(
self,
max: usize
) -> BatchSpanProcessorBuilder<E, R>
pub fn with_max_concurrent_exports( self, max: usize ) -> BatchSpanProcessorBuilder<E, R>
Set the maximum number of concurrent exports
This setting may be useful for limiting network throughput or memory consumption.
sourcepub fn with_batch_config(
self,
config: BatchConfig
) -> BatchSpanProcessorBuilder<E, R>
pub fn with_batch_config( self, config: BatchConfig ) -> BatchSpanProcessorBuilder<E, R>
Set the BatchConfig for BatchSpanProcessorBuilder
sourcepub fn build(self) -> BatchSpanProcessor<R>
pub fn build(self) -> BatchSpanProcessor<R>
Build a batch processor