pub struct MetricsExporterBuilder { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Configuration for the stdout metrics exporter
Implementations§
source§impl MetricsExporterBuilder
impl MetricsExporterBuilder
sourcepub fn with_temporality_selector(
self,
selector: impl TemporalitySelector + 'static,
) -> Self
pub fn with_temporality_selector( self, selector: impl TemporalitySelector + 'static, ) -> Self
Set the temporality exporter for the exporter
sourcepub fn with_aggregation_selector(
self,
selector: impl AggregationSelector + 'static,
) -> Self
pub fn with_aggregation_selector( self, selector: impl AggregationSelector + 'static, ) -> Self
Set the aggregation exporter for the exporter
sourcepub fn build(self) -> MetricsExporter
pub fn build(self) -> MetricsExporter
Create a metrics exporter with the current configuration
Trait Implementations§
source§impl Debug for MetricsExporterBuilder
impl Debug for MetricsExporterBuilder
source§impl Default for MetricsExporterBuilder
impl Default for MetricsExporterBuilder
source§fn default() -> MetricsExporterBuilder
fn default() -> MetricsExporterBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetricsExporterBuilder
impl !RefUnwindSafe for MetricsExporterBuilder
impl Send for MetricsExporterBuilder
impl Sync for MetricsExporterBuilder
impl Unpin for MetricsExporterBuilder
impl !UnwindSafe for MetricsExporterBuilder
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