Struct opentelemetry_sdk::metrics::ManualReaderBuilder
source · pub struct ManualReaderBuilder { /* private fields */ }
Expand description
Configuration for a ManualReader
Implementations§
source§impl ManualReaderBuilder
impl ManualReaderBuilder
sourcepub fn with_temporality_selector(
self,
temporality_selector: impl TemporalitySelector + 'static,
) -> Self
pub fn with_temporality_selector( self, temporality_selector: impl TemporalitySelector + 'static, ) -> Self
Sets the TemporalitySelector a reader will use to determine the Temporality of an instrument based on its kind. If this option is not used, the reader will use the default temporality selector.
sourcepub fn with_aggregation_selector(
self,
aggregation_selector: impl AggregationSelector + 'static,
) -> Self
pub fn with_aggregation_selector( self, aggregation_selector: impl AggregationSelector + 'static, ) -> Self
Sets the AggregationSelector a reader will use to determine the aggregation to use for an instrument based on its kind.
If this option is not used, the reader will use the default aggregation selector or the aggregation explicitly passed for a view matching an instrument.
sourcepub fn with_producer(self, producer: impl MetricProducer + 'static) -> Self
pub fn with_producer(self, producer: impl MetricProducer + 'static) -> Self
Registers a an external MetricProducer with this reader.
The producer is used as a source of aggregated metric data which is incorporated into metrics collected from the SDK.
sourcepub fn build(self) -> ManualReader
pub fn build(self) -> ManualReader
Create a new ManualReader from this configuration.
Trait Implementations§
source§impl Debug for ManualReaderBuilder
impl Debug for ManualReaderBuilder
Auto Trait Implementations§
impl Freeze for ManualReaderBuilder
impl !RefUnwindSafe for ManualReaderBuilder
impl Send for ManualReaderBuilder
impl Sync for ManualReaderBuilder
impl Unpin for ManualReaderBuilder
impl !UnwindSafe for ManualReaderBuilder
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