Struct opentelemetry_stdout::MetricsExporter
source · pub struct MetricsExporter { /* private fields */ }
Available on crate feature
metrics
only.Expand description
An OpenTelemetry exporter that writes to stdout on export.
Implementations§
source§impl MetricsExporter
impl MetricsExporter
sourcepub fn builder() -> MetricsExporterBuilder
pub fn builder() -> MetricsExporterBuilder
Create a builder to configure this exporter.
Trait Implementations§
source§impl AggregationSelector for MetricsExporter
impl AggregationSelector for MetricsExporter
source§fn aggregation(&self, kind: InstrumentKind) -> Aggregation
fn aggregation(&self, kind: InstrumentKind) -> Aggregation
Selects the aggregation and the parameters to use for that aggregation based on
the InstrumentKind.
source§impl Debug for MetricsExporter
impl Debug for MetricsExporter
source§impl Default for MetricsExporter
impl Default for MetricsExporter
source§impl PushMetricsExporter for MetricsExporter
impl PushMetricsExporter for MetricsExporter
source§fn export<'life0, 'life1, 'async_trait>(
&'life0 self,
metrics: &'life1 mut ResourceMetrics,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export<'life0, 'life1, 'async_trait>(
&'life0 self,
metrics: &'life1 mut ResourceMetrics,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write Metrics to stdout
source§impl TemporalitySelector for MetricsExporter
impl TemporalitySelector for MetricsExporter
source§fn temporality(&self, kind: InstrumentKind) -> Temporality
fn temporality(&self, kind: InstrumentKind) -> Temporality
Selects the temporality to use based on the InstrumentKind.
Auto Trait Implementations§
impl !Freeze for MetricsExporter
impl !RefUnwindSafe for MetricsExporter
impl Send for MetricsExporter
impl Sync for MetricsExporter
impl Unpin for MetricsExporter
impl !UnwindSafe for MetricsExporter
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