-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example: add temporality selector option to metrics-basic (#2217)
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
- Loading branch information
1 parent
f677458
commit 4852a5e
Showing
20 changed files
with
185 additions
and
265 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
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.