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

pub struct BatchSpanProcessorBuilder<E, S, I, D> { /* fields omitted */ }
This is supported on crate feature trace only.

A builder for creating BatchSpanProcessor instances.

Implementations

impl<E, S, SH, SO, I, IS, ISI, D, DS> BatchSpanProcessorBuilder<E, S, I, D> 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,
    D: Fn(Duration) -> DS + Send + Sync + 'static,
    DS: Future<Output = ()> + 'static + Send + Sync
[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_timeout(self, timeout: Duration) -> Self[src]

Set max timeout for exporting.

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, D: Debug> Debug for BatchSpanProcessorBuilder<E, S, I, D>[src]

Auto Trait Implementations

impl<E, S, I, D> RefUnwindSafe for BatchSpanProcessorBuilder<E, S, I, D> where
    D: RefUnwindSafe,
    E: RefUnwindSafe,
    I: RefUnwindSafe,
    S: RefUnwindSafe
[src]

impl<E, S, I, D> Send for BatchSpanProcessorBuilder<E, S, I, D> where
    D: Send,
    E: Send,
    I: Send,
    S: Send
[src]

impl<E, S, I, D> Sync for BatchSpanProcessorBuilder<E, S, I, D> where
    D: Sync,
    E: Sync,
    I: Sync,
    S: Sync
[src]

impl<E, S, I, D> Unpin for BatchSpanProcessorBuilder<E, S, I, D> where
    D: Unpin,
    E: Unpin,
    I: Unpin,
    S: Unpin
[src]

impl<E, S, I, D> UnwindSafe for BatchSpanProcessorBuilder<E, S, I, D> where
    D: UnwindSafe,
    E: UnwindSafe,
    I: UnwindSafe,
    S: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for 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]

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