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 new() -> ManualReaderBuilder
pub fn new() -> ManualReaderBuilder
New manual builder configuration
sourcepub fn with_temporality_selector(
self,
temporality_selector: impl TemporalitySelector + 'static
) -> ManualReaderBuilder
pub fn with_temporality_selector( self, temporality_selector: impl TemporalitySelector + 'static ) -> ManualReaderBuilder
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: Box<dyn AggregationSelector>
) -> ManualReaderBuilder
pub fn with_aggregation_selector( self, aggregation_selector: Box<dyn AggregationSelector> ) -> ManualReaderBuilder
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 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
source§impl Default for ManualReaderBuilder
impl Default for ManualReaderBuilder
source§fn default() -> ManualReaderBuilder
fn default() -> ManualReaderBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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