-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use temporality enum for selection
- Loading branch information
1 parent
4327283
commit 773803c
Showing
17 changed files
with
152 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
/// Defines the window that an aggregation was calculated over. | ||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | ||
#[derive(Debug, Copy, Clone, Default, PartialEq, Eq, Hash)] | ||
#[non_exhaustive] | ||
pub enum Temporality { | ||
/// A measurement interval that continues to expand forward in time from a | ||
/// starting point. | ||
/// | ||
/// New measurements are added to all previous measurements since a start time. | ||
#[default] | ||
Cumulative, | ||
|
||
/// A measurement interval that resets each cycle. | ||
/// | ||
/// Measurements from one cycle are recorded independently, measurements from | ||
/// other cycles do not affect them. | ||
Delta, | ||
|
||
/// Configures Synchronous Counter and Histogram instruments to use | ||
/// Delta aggregation temporality, which allows them to shed memory | ||
/// following a cardinality explosion, thus use less memory. | ||
LowMemory, | ||
} |
Oops, something went wrong.