-
Notifications
You must be signed in to change notification settings - Fork 652
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Asynchronous and Synchronous sum aggregations (#2379)
* Merge Asynchronous and Synchronous sum aggregations Fixes #2353 * Don't use None for self._value * Remove temporality check from sum aggregate * Update opentelemetry-sdk/src/opentelemetry/sdk/_metrics/aggregation.py Co-authored-by: Aaron Abbott <[email protected]> * Add cumulative test cases * Fix lint * Set value to None This is done in order to identify the situation when aggregate has not been called before collect is. * Refactor collect * Fix initial value * Update opentelemetry-sdk/tests/metrics/test_aggregation.py Co-authored-by: Aaron Abbott <[email protected]> * Undo changes to lastvalueaggrgation * Fix test case Co-authored-by: Aaron Abbott <[email protected]>
- Loading branch information
Showing
2 changed files
with
79 additions
and
124 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