Trait opentelemetry_sdk::metrics::reader::TemporalitySelector
source · pub trait TemporalitySelector: Send + Sync {
// Required method
fn temporality(&self, kind: InstrumentKind) -> Temporality;
}
Expand description
An interface for selecting the temporality for an InstrumentKind.
Required Methods§
sourcefn temporality(&self, kind: InstrumentKind) -> Temporality
fn temporality(&self, kind: InstrumentKind) -> Temporality
Selects the temporality to use based on the InstrumentKind.