Struct opentelemetry_sdk::metrics::ManualReader
source · pub struct ManualReader { /* private fields */ }
Expand description
A simple MetricReader that allows an application to read metrics on demand.
See ManualReaderBuilder for configuration options.
§Example
use opentelemetry_sdk::metrics::ManualReader;
// can specify additional reader configuration
let reader = ManualReader::builder().build();
Implementations§
source§impl ManualReader
impl ManualReader
sourcepub fn builder() -> ManualReaderBuilder
pub fn builder() -> ManualReaderBuilder
Configuration for this reader
Trait Implementations§
source§impl AggregationSelector for ManualReader
impl AggregationSelector for ManualReader
source§fn aggregation(&self, kind: InstrumentKind) -> Aggregation
fn aggregation(&self, kind: InstrumentKind) -> Aggregation
Selects the aggregation and the parameters to use for that aggregation based on
the InstrumentKind.
source§impl Debug for ManualReader
impl Debug for ManualReader
source§impl Default for ManualReader
impl Default for ManualReader
source§impl MetricReader for ManualReader
impl MetricReader for ManualReader
source§fn register_pipeline(&self, pipeline: Weak<Pipeline>)
fn register_pipeline(&self, pipeline: Weak<Pipeline>)
Register a pipeline which enables the caller to read metrics from the SDK on demand.
source§fn collect(&self, rm: &mut ResourceMetrics) -> Result<()>
fn collect(&self, rm: &mut ResourceMetrics) -> Result<()>
Gathers all metrics from the SDK and other MetricProducers, calling any callbacks necessary and returning the results.
Returns an error if called after shutdown.
source§fn force_flush(&self) -> Result<()>
fn force_flush(&self) -> Result<()>
ForceFlush is a no-op, it always returns nil.
source§impl TemporalitySelector for ManualReader
impl TemporalitySelector for ManualReader
source§fn temporality(&self, kind: InstrumentKind) -> Temporality
fn temporality(&self, kind: InstrumentKind) -> Temporality
Selects the temporality to use based on the InstrumentKind.
Auto Trait Implementations§
impl Freeze for ManualReader
impl !RefUnwindSafe for ManualReader
impl Send for ManualReader
impl Sync for ManualReader
impl Unpin for ManualReader
impl !UnwindSafe for ManualReader
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