Struct opentelemetry::sdk::export::metrics::StdoutExporter
source · pub struct StdoutExporter<W> { /* private fields */ }
Available on crate feature
metrics
only.Expand description
An OpenTelemetry metric exporter that transmits telemetry to
the local STDOUT or via the registered implementation of Write
.
Implementations§
source§impl<W> StdoutExporter<W>
impl<W> StdoutExporter<W>
sourcepub fn temporality_selector(&self) -> impl TemporalitySelector
pub fn temporality_selector(&self) -> impl TemporalitySelector
The temporality selector for this exporter
Trait Implementations§
source§impl<W> Debug for StdoutExporter<W>where
W: Debug,
impl<W> Debug for StdoutExporter<W>where W: Debug,
source§impl<W> MetricsExporter for StdoutExporter<W>where
W: Debug + Write,
impl<W> MetricsExporter for StdoutExporter<W>where W: Debug + Write,
source§fn export(
&self,
_cx: &Context,
res: &Resource,
reader: &dyn InstrumentationLibraryReader
) -> Result<(), MetricsError>
fn export( &self, _cx: &Context, res: &Resource, reader: &dyn InstrumentationLibraryReader ) -> Result<(), MetricsError>
Export is called immediately after completing a collection
pass in the SDK. Read more
source§impl<W> TemporalitySelector for StdoutExporter<W>
impl<W> TemporalitySelector for StdoutExporter<W>
source§fn temporality_for(
&self,
descriptor: &Descriptor,
kind: &AggregationKind
) -> Temporality
fn temporality_for( &self, descriptor: &Descriptor, kind: &AggregationKind ) -> Temporality
TemporalityFor should return the correct Temporality that
should be used when exporting data for the given metric
instrument and Aggregator kind.