opentelemetry_sdk/metrics/data/temporality.rs
1/// Defines the window that an aggregation was calculated over.
2#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
3#[non_exhaustive]
4pub enum Temporality {
5 /// A measurement interval that continues to expand forward in time from a
6 /// starting point.
7 ///
8 /// New measurements are added to all previous measurements since a start time.
9 Cumulative,
10
11 /// A measurement interval that resets each cycle.
12 ///
13 /// Measurements from one cycle are recorded independently, measurements from
14 /// other cycles do not affect them.
15 Delta,
16}