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
sourceimpl<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
sourceimpl<W> Debug for StdoutExporter<W>where
W: Debug,
impl<W> Debug for StdoutExporter<W>where
W: Debug,
sourceimpl<W> MetricsExporter for StdoutExporter<W>where
W: Debug + Write,
impl<W> MetricsExporter for StdoutExporter<W>where
W: Debug + Write,
sourcefn 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
sourceimpl<W> TemporalitySelector for StdoutExporter<W>
impl<W> TemporalitySelector for StdoutExporter<W>
sourcefn 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. Read more
Auto Trait Implementations
impl<W> !RefUnwindSafe for StdoutExporter<W>
impl<W> Send for StdoutExporter<W>where
W: Send,
impl<W> Sync for StdoutExporter<W>where
W: Send,
impl<W> Unpin for StdoutExporter<W>where
W: Unpin,
impl<W> !UnwindSafe for StdoutExporter<W>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more