[][src]Struct opentelemetry_otlp::OtlpMetricPipelineBuilder

pub struct OtlpMetricPipelineBuilder<AS, ES, SP, SO, I, IO> where
    AS: AggregatorSelector + Send + Sync + 'static,
    ES: ExportKindFor + Send + Sync + Clone + 'static,
    SP: Fn(PushControllerWorker) -> SO,
    I: Fn(Duration) -> IO, 
{ /* fields omitted */ }

Implementations

impl<AS, ES, SP, SO, I, IO, IOI> OtlpMetricPipelineBuilder<AS, ES, SP, SO, I, IO> where
    AS: AggregatorSelector + Send + Sync + 'static,
    ES: ExportKindFor + Send + Sync + Clone + 'static,
    SP: Fn(PushControllerWorker) -> SO,
    I: Fn(Duration) -> IO,
    IO: Stream<Item = IOI> + Send + 'static, 
[src]

pub fn with_resource<T: IntoIterator<Item = R>, R: Into<KeyValue>>(
    mut self: Self,
    resource: T
) -> Self
[src]

Build with resource key value pairs.

pub fn with_export_config(mut self: Self, export_config: ExporterConfig) -> Self[src]

Build with export configuration

pub fn with_aggregator_selector(mut self: Self, aggregator_selector: AS) -> Self[src]

Build with the aggregator selector

pub fn with_spawn(mut self: Self, spawn: SP) -> Self[src]

Build with spawn function

pub fn with_timeout(mut self: Self, timeout: Duration) -> Self[src]

Build with timeout

pub fn with_period(mut self: Self, period: Duration) -> Self[src]

Build with period, your metrics will be exported with this period

pub fn with_stateful(mut self: Self, stateful: bool) -> Self[src]

Build a stateful push controller or not

pub fn with_interval(mut self: Self, interval: I) -> Self[src]

Build with interval function

pub fn with_export_kind(mut self: Self, export_selector: ES) -> Self[src]

Build with export kind selector

pub fn build(self) -> Result<PushController>[src]

Build push controller

Auto Trait Implementations

impl<AS, ES, SP, SO, I, IO> !RefUnwindSafe for OtlpMetricPipelineBuilder<AS, ES, SP, SO, I, IO>[src]

impl<AS, ES, SP, SO, I, IO> Send for OtlpMetricPipelineBuilder<AS, ES, SP, SO, I, IO> where
    I: Send,
    SP: Send
[src]

impl<AS, ES, SP, SO, I, IO> Sync for OtlpMetricPipelineBuilder<AS, ES, SP, SO, I, IO> where
    I: Sync,
    SP: Sync
[src]

impl<AS, ES, SP, SO, I, IO> Unpin for OtlpMetricPipelineBuilder<AS, ES, SP, SO, I, IO> where
    AS: Unpin,
    ES: Unpin,
    I: Unpin,
    SP: Unpin
[src]

impl<AS, ES, SP, SO, I, IO> !UnwindSafe for OtlpMetricPipelineBuilder<AS, ES, SP, SO, I, IO>[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> FutureExt 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, 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>, 

impl<T> WithSubscriber for T[src]