pub struct MetricExporter { /* private fields */ }
Available on crate feature
metrics
only.Expand description
An OpenTelemetry exporter that writes to stdout on export.
Implementations§
Source§impl MetricExporter
impl MetricExporter
Sourcepub fn builder() -> MetricExporterBuilder
pub fn builder() -> MetricExporterBuilder
Create a builder to configure this exporter.
Trait Implementations§
Source§impl Debug for MetricExporter
impl Debug for MetricExporter
Source§impl Default for MetricExporter
impl Default for MetricExporter
Source§impl PushMetricExporter for MetricExporter
impl PushMetricExporter for MetricExporter
Source§fn export<'life0, 'life1, 'async_trait>(
&'life0 self,
metrics: &'life1 mut ResourceMetrics,
) -> Pin<Box<dyn Future<Output = MetricResult<()>> + 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 = MetricResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write Metrics to stdout
Source§fn force_flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MetricResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn force_flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MetricResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Flushes any metric data held by an exporter.
Source§fn temporality(&self) -> Temporality
fn temporality(&self) -> Temporality
Access the Temporality of the MetricExporter.
Auto Trait Implementations§
impl !Freeze for MetricExporter
impl RefUnwindSafe for MetricExporter
impl Send for MetricExporter
impl Sync for MetricExporter
impl Unpin for MetricExporter
impl UnwindSafe for MetricExporter
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