-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add the Exponential Histogram and other aggregators for review LS-29757 #174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly minor notes, for most of which I've made suggestions this time. I'm requesting changes because I think UpdateByIncr
should return immediately if incr
is 0, to avoid both unnecessary work and a possible bug, but if I've misunderstood something please feel free to disregard that.
…launcher-go into jmacd/review_expohisto
…uncher-go into jmacd/review_expohisto
❤️ Co-authored-by: Nathan Vērzemnieks <njvrzm@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of nice tidying here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
must admit that I just glanced over the exponential tests but looks good, only added couple questions.
contained in these OpenTelemetry-Go PRs: open-telemetry/opentelemetry-go#2982 open-telemetry/opentelemetry-go#2502 The data structure was reviewed by Lightstep engineers for inclusion in otel-launcher-go: lightstep/otel-launcher-go#174 lightstep/otel-launcher-go#215 lightstep/otel-launcher-go#222
Description:
The aggregators (Sum, Gauge, and Exponential Histogram) are contained in this review. The Sum and Gauge aggregators are trivial, however the exponential histogram needs serious review.
Link to tracking Issue:
LS-29760 describes the overall goal; this is one part.
Testing:
End-to-end testing was done. The alt_metrics_sdk/development branch has a assembled copy of this code. Depends on various Lightstep-side PRs merging to see the exponential histograms work.