pub struct PrometheusExporterBuilder { /* private fields */ }
Available on crate feature
prometheus
only.Expand description
Builder for PrometheusExporter
.
Implementations§
Source§impl PrometheusExporterBuilder
impl PrometheusExporterBuilder
Sourcepub fn with_temporality(self, temporality: Temporality) -> Self
pub fn with_temporality(self, temporality: Temporality) -> Self
Set the reader temporality.
Sourcepub fn with_prometheus_full_utf8(self, prometheus_full_utf8: bool) -> Self
pub fn with_prometheus_full_utf8(self, prometheus_full_utf8: bool) -> Self
Allow full UTF-8 labels in Prometheus.
This is disabled by default however if you are using a newer version of Prometheus that supports full UTF-8 labels you may enable this feature.
Sourcepub fn build(self) -> PrometheusExporter
pub fn build(self) -> PrometheusExporter
Build the PrometheusExporter
.
Trait Implementations§
Source§impl Default for PrometheusExporterBuilder
impl Default for PrometheusExporterBuilder
Source§fn default() -> PrometheusExporterBuilder
fn default() -> PrometheusExporterBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrometheusExporterBuilder
impl RefUnwindSafe for PrometheusExporterBuilder
impl Send for PrometheusExporterBuilder
impl Sync for PrometheusExporterBuilder
impl Unpin for PrometheusExporterBuilder
impl UnwindSafe for PrometheusExporterBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more