Trait opentelemetry::sdk::export::metrics::aggregation::TemporalitySelector
source · pub trait TemporalitySelector {
// Required method
fn temporality_for(
&self,
descriptor: &Descriptor,
kind: &AggregationKind
) -> Temporality;
}
Available on crate feature
metrics
only.Expand description
TemporalitySelector is a sub-interface of Exporter used to indicate whether the Processor should compute Delta or Cumulative Aggregations.
Required Methods§
sourcefn temporality_for(
&self,
descriptor: &Descriptor,
kind: &AggregationKind
) -> Temporality
fn temporality_for( &self, descriptor: &Descriptor, kind: &AggregationKind ) -> Temporality
TemporalityFor should return the correct Temporality that should be used when exporting data for the given metric instrument and Aggregator kind.