[][src]Struct opentelemetry_prometheus::PrometheusExporter

pub struct PrometheusExporter { /* fields omitted */ }

An implementation of metrics::Exporter that sends metrics to Prometheus.

This exporter supports Prometheus pulls, as such it does not implement the export.Exporter interface.

Implementations

impl PrometheusExporter[src]

pub fn new(
    registry: Registry,
    controller: PullController,
    default_summary_quantiles: Vec<f64>,
    default_histogram_boundaries: Vec<f64>
) -> Result<Self, MetricsError>
[src]

Create a new prometheus exporter

pub fn registry(&self) -> &Registry[src]

Returns a reference to the current prometheus registry.

pub fn provider(&self) -> Result<RegistryMeterProvider, MetricsError>[src]

Get this exporter's provider.

pub fn export_kind_for(
    &self,
    _descriptor: &Descriptor,
    _kind: &InstrumentKind
) -> ExportKind
[src]

Determine the export kind this exporter should use for a given instrument and descriptor.

Trait Implementations

impl Clone for PrometheusExporter[src]

impl Debug for PrometheusExporter[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.