[][src]Struct opentelemetry::sdk::trace::BatchSpanProcessorBuilder

pub struct BatchSpanProcessorBuilder<E, S, I> { /* fields omitted */ }

A builder for creating BatchSpanProcessor instances.

Implementations

impl<E, S, SH, SO, I, IS, ISI> BatchSpanProcessorBuilder<E, S, I> where
    E: SpanExporter + 'static,
    S: Fn(BoxFuture<'static, ()>) -> SH,
    SH: Future<Output = SO> + Send + Sync + 'static,
    I: Fn(Duration) -> IS,
    IS: Stream<Item = ISI> + Send + 'static, 
[src]

pub fn with_max_queue_size(self, size: usize) -> Self[src]

Set max queue size for batches

pub fn with_scheduled_delay(self, delay: Duration) -> Self[src]

Set scheduled delay for batches

pub fn with_max_export_batch_size(self, size: usize) -> Self[src]

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

pub fn build(self) -> BatchSpanProcessor[src]

Build a batch processor

Trait Implementations

impl<E: Debug, S: Debug, I: Debug> Debug for BatchSpanProcessorBuilder<E, S, I>[src]

Auto Trait Implementations

impl<E, S, I> RefUnwindSafe for BatchSpanProcessorBuilder<E, S, I> where
    E: RefUnwindSafe,
    I: RefUnwindSafe,
    S: RefUnwindSafe

impl<E, S, I> Send for BatchSpanProcessorBuilder<E, S, I> where
    E: Send,
    I: Send,
    S: Send

impl<E, S, I> Sync for BatchSpanProcessorBuilder<E, S, I> where
    E: Sync,
    I: Sync,
    S: Sync

impl<E, S, I> Unpin for BatchSpanProcessorBuilder<E, S, I> where
    E: Unpin,
    I: Unpin,
    S: Unpin

impl<E, S, I> UnwindSafe for BatchSpanProcessorBuilder<E, S, I> where
    E: UnwindSafe,
    I: UnwindSafe,
    S: UnwindSafe

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, 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>,