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

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

A builder for creating BatchSpanProcessor instances.

Implementations

impl<E, R> BatchSpanProcessorBuilder<E, R> where
    E: SpanExporter + 'static,
    R: Runtime
[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, R: Debug> Debug for BatchSpanProcessorBuilder<E, R>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<E, R> RefUnwindSafe for BatchSpanProcessorBuilder<E, R> where
    E: RefUnwindSafe,
    R: RefUnwindSafe

impl<E, R> Send for BatchSpanProcessorBuilder<E, R> where
    E: Send,
    R: Send

impl<E, R> Sync for BatchSpanProcessorBuilder<E, R> where
    E: Sync,
    R: Sync

impl<E, R> Unpin for BatchSpanProcessorBuilder<E, R> where
    E: Unpin,
    R: Unpin

impl<E, R> UnwindSafe for BatchSpanProcessorBuilder<E, R> where
    E: UnwindSafe,
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V