[−][src]Struct opentelemetry::sdk::trace::BatchSpanProcessorBuilder
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]
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,
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
Auto Trait Implementations
impl<E, S, I, D> RefUnwindSafe for BatchSpanProcessorBuilder<E, S, I, D> where
D: RefUnwindSafe,
E: RefUnwindSafe,
I: RefUnwindSafe,
S: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<E, S, I, D> Send for BatchSpanProcessorBuilder<E, S, I, D> where
D: Send,
E: Send,
I: Send,
S: Send,
D: Send,
E: Send,
I: Send,
S: Send,
impl<E, S, I, D> Sync for BatchSpanProcessorBuilder<E, S, I, D> where
D: Sync,
E: Sync,
I: Sync,
S: Sync,
D: Sync,
E: Sync,
I: Sync,
S: Sync,
impl<E, S, I, D> Unpin for BatchSpanProcessorBuilder<E, S, I, D> where
D: Unpin,
E: Unpin,
I: Unpin,
S: Unpin,
D: Unpin,
E: Unpin,
I: Unpin,
S: Unpin,
impl<E, S, I, D> UnwindSafe for BatchSpanProcessorBuilder<E, S, I, D> where
D: UnwindSafe,
E: UnwindSafe,
I: UnwindSafe,
S: UnwindSafe,
D: UnwindSafe,
E: UnwindSafe,
I: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,