pub struct TestMetricsReader { /* private fields */ }Trait Implementations§
Source§impl Clone for TestMetricsReader
impl Clone for TestMetricsReader
Source§fn clone(&self) -> TestMetricsReader
fn clone(&self) -> TestMetricsReader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TestMetricsReader
impl Debug for TestMetricsReader
Source§impl Default for TestMetricsReader
impl Default for TestMetricsReader
Source§impl MetricReader for TestMetricsReader
impl MetricReader for TestMetricsReader
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) -> OTelSdkResult
fn collect(&self, rm: &mut ResourceMetrics) -> OTelSdkResult
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
shutdown with default timeout
Source§fn shutdown_with_timeout(&self, timeout: Duration) -> OTelSdkResult
fn shutdown_with_timeout(&self, timeout: Duration) -> 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 TestMetricsReader
impl RefUnwindSafe for TestMetricsReader
impl Send for TestMetricsReader
impl Sync for TestMetricsReader
impl Unpin for TestMetricsReader
impl UnsafeUnpin for TestMetricsReader
impl UnwindSafe for TestMetricsReader
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