[−][src]Struct opentelemetry_prometheus::PrometheusExporter
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]
registry: Registry,
controller: PullController,
default_summary_quantiles: Vec<f64>,
default_histogram_boundaries: Vec<f64>
) -> Result<Self, MetricsError>
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]
&self,
_descriptor: &Descriptor,
_kind: &InstrumentKind
) -> ExportKind
Determine the export kind this exporter should use for a given instrument and descriptor.
Trait Implementations
impl Clone for PrometheusExporter
[src]
fn clone(&self) -> PrometheusExporter
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PrometheusExporter
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PrometheusExporter
impl Send for PrometheusExporter
impl Sync for PrometheusExporter
impl Unpin for PrometheusExporter
impl !UnwindSafe for PrometheusExporter
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,