[][src]Struct opentelemetry_prometheus::ExporterBuilder

pub struct ExporterBuilder { /* fields omitted */ }

Configuration for the prometheus exporter.

Implementations

impl ExporterBuilder[src]

pub fn with_resource(self, resource: Resource) -> Self[src]

Set the resource to be associated with all Meters for this exporter

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

Set the period which a recently-computed result will be returned without gathering metric data again.

If the period is zero, caching of the result is disabled (default).

pub fn with_default_summary_quantiles(self, quantiles: Vec<f64>) -> Self[src]

Set the default summary quantiles to be used by exported prometheus histograms

pub fn with_default_histogram_boundaries(self, boundaries: Vec<f64>) -> Self[src]

Set the default boundaries to be used by exported prometheus histograms

pub fn with_registry(self, registry: Registry) -> Self[src]

Set the prometheus registry to be used by this exporter

pub fn try_init(self) -> Result<PrometheusExporter, MetricsError>[src]

Sets up a complete export pipeline with the recommended setup, using the recommended selector and standard processor.

pub fn init(self) -> PrometheusExporter[src]

Sets up a complete export pipeline with the recommended setup, using the recommended selector and standard processor.

Panics

This panics if the exporter cannot be registered in the prometheus registry.

Trait Implementations

impl Debug for ExporterBuilder[src]

impl Default for ExporterBuilder[src]

Auto Trait Implementations

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.