[−][src]Struct opentelemetry_prometheus::ExporterBuilder
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 Meter
s 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]
fn default() -> ExporterBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ExporterBuilder
impl Send for ExporterBuilder
impl Sync for ExporterBuilder
impl Unpin for ExporterBuilder
impl !UnwindSafe for ExporterBuilder
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, 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>,