pub struct InMemoryReader { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryReader
impl Clone for InMemoryReader
Source§fn clone(&self) -> InMemoryReader
fn clone(&self) -> InMemoryReader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InMemoryReader
impl Debug for InMemoryReader
Source§impl MetricReader for InMemoryReader
impl MetricReader for InMemoryReader
Source§fn register_pipeline(&self, pipeline: Weak<Pipeline>)
fn register_pipeline(&self, pipeline: Weak<Pipeline>)
Registers a [MetricReader] with a [Pipeline]. Read more
Source§fn collect(&self, rm: &mut ResourceMetrics) -> MetricResult<()>
fn collect(&self, rm: &mut ResourceMetrics) -> MetricResult<()>
Gathers and returns all metric data related to the [MetricReader] from the
SDK and stores it in the provided [ResourceMetrics] reference. Read more
Source§fn force_flush(&self) -> OTelSdkResult
fn force_flush(&self) -> OTelSdkResult
Flushes all metric measurements held in an export pipeline. Read more
Source§fn shutdown(&self) -> OTelSdkResult
fn shutdown(&self) -> OTelSdkResult
Flushes all metric measurements held in an export pipeline and releases any
held computational resources. Read more
Source§fn temporality(&self, kind: InstrumentKind) -> Temporality
fn temporality(&self, kind: InstrumentKind) -> Temporality
The output temporality, a function of instrument kind.
This SHOULD be obtained from the exporter. Read more
Auto Trait Implementations§
impl Freeze for InMemoryReader
impl RefUnwindSafe for InMemoryReader
impl Send for InMemoryReader
impl Sync for InMemoryReader
impl Unpin for InMemoryReader
impl UnwindSafe for InMemoryReader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more