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

Add the Exponential Histogram and other aggregators for review LS-29757 #174

Merged
merged 10 commits into from
Jun 9, 2022

Conversation

jmacd
Copy link
Member

@jmacd jmacd commented May 23, 2022

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.

Copy link
Contributor

@njvrzm njvrzm left a 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.

lightstep/sdk/metric/aggregator/aggregation/aggregation.go Outdated Show resolved Hide resolved
lightstep/sdk/metric/aggregator/aggregation/aggregation.go Outdated Show resolved Hide resolved
lightstep/sdk/metric/aggregator/aggregator.go Outdated Show resolved Hide resolved
lightstep/sdk/metric/aggregator/aggregator.go Outdated Show resolved Hide resolved
lightstep/sdk/metric/aggregator/aggregator.go Outdated Show resolved Hide resolved
lightstep/sdk/metric/aggregator/histogram/exponential.go Outdated Show resolved Hide resolved
lightstep/sdk/metric/aggregator/histogram/histogram.go Outdated Show resolved Hide resolved
lightstep/sdk/metric/aggregator/histogram/histogram.go Outdated Show resolved Hide resolved
Copy link
Contributor

@njvrzm njvrzm left a 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 :)

Copy link

@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.

must admit that I just glanced over the exponential tests but looks good, only added couple questions.

lightstep/sdk/metric/aggregator/sum/sum.go Show resolved Hide resolved
lightstep/sdk/metric/aggregator/sum/sum.go Outdated Show resolved Hide resolved
@jmacd jmacd merged commit 3891efa into alt_metrics_sdk/reviewed Jun 9, 2022
@jmacd jmacd deleted the jmacd/review_expohisto branch June 28, 2022 18:26
jmacd added a commit to lightstep/go-expohisto that referenced this pull request Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants