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§async fn export(&self, metrics: &ResourceMetrics) -> OTelSdkResult
async fn export(&self, metrics: &ResourceMetrics) -> OTelSdkResult
Write Metrics to stdout
Source§fn force_flush(&self) -> OTelSdkResult
fn force_flush(&self) -> OTelSdkResult
Flushes any metric data held by an exporter.
Source§fn shutdown(&self) -> OTelSdkResult
fn shutdown(&self) -> OTelSdkResult
Shutdown with the default timeout of 5 seconds.
Source§fn shutdown_with_timeout(&self, _timeout: Duration) -> OTelSdkResult
fn shutdown_with_timeout(&self, _timeout: Duration) -> OTelSdkResult
Releases any held computational resources. Read more
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