Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use StateLocker in MinMaxSumCount #546

Merged
merged 5 commits into from
Mar 12, 2020

Conversation

evantorrie
Copy link
Contributor

@evantorrie evantorrie commented Mar 12, 2020

Closes #535
Closes #437

  • Reimplement MinMaxSumCount using StateLocker to ensure a consistent set of values for the aggregator's outputs.

  • Added a stress test that fails under the earlier MinMaxSumCount implementation, but succeeds with the new StateLocker-based implementation.

sdk/metric/aggregator/minmaxsumcount/mmsc.go Outdated Show resolved Hide resolved
sdk/metric/minmaxsumcount_stress_test.go Outdated Show resolved Hide resolved
sdk/metric/minmaxsumcount_stress_test.go Show resolved Hide resolved
Copy link
Member

@paivagustavo paivagustavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is awesome, thanks for taking this @evantorrie !

sdk/metric/minmaxsumcount_stress_test.go Show resolved Hide resolved
sdk/metric/minmaxsumcount_stress_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@rghetia rghetia merged commit 8680783 into open-telemetry:master Mar 12, 2020
@evantorrie evantorrie deleted the mmsc-statelocker branch March 12, 2020 22:52
MikeGoldsmith pushed a commit to MikeGoldsmith/opentelemetry-go that referenced this pull request Mar 13, 2020
* Add MinMaxSumCount stress test

* Reimplement MinMaxSumCount using StateLocker

* Address PR comments

* Round open-telemetry#2 of PR comments

Co-authored-by: Rahul Patel <[email protected]>
@MrAlias MrAlias added this to the Implement v0.4.0 Specification milestone Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants