-
Notifications
You must be signed in to change notification settings - Fork 842
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
Supports Histogram Aggregation #2575
Supports Histogram Aggregation #2575
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.
Thanks for doing this work. This PR is a little big to review efficiently. Can you break it up into smaller bits? Maybe
- Implementation of the core SDK pieces, with no exporter implementation
- Add the OTLP exporter implementation
- Add the prometheus exporter implementation
Thanks!
...metrics/src/main/java/io/opentelemetry/sdk/metrics/aggregator/DoubleHistogramAggregator.java
Outdated
Show resolved
Hide resolved
Thanks for the quick review.
I don't have much experience doing Github reviews myself so I'm not sure if it serves the same. Please let me know if breaking them into separate PRs would provide a better review process. |
Codecov Report
@@ Coverage Diff @@
## master #2575 +/- ##
=============================================
+ Coverage 0 87.30% +87.30%
- Complexity 0 2678 +2678
=============================================
Files 0 323 +323
Lines 0 8953 +8953
Branches 0 910 +910
=============================================
+ Hits 0 7816 +7816
- Misses 0 846 +846
- Partials 0 291 +291
Continue to review full report at Codecov.
|
separate PRs would definitely help, if that's possible. thanks! |
I've separated the PR into the following:
The caveat is that they all share two common commits in order to make the checks happy. but they should result no conflict in the merge. |
awesome. I'll take a look at them in more detail very soon. |
Support fixed bucket histogram aggregation and exporting them with OTLP/Prometheus exporter.
Since the View API is not part of the public Metric API yet (optentelemetry-specification#466), there's no universal way to configure custom aggregators for different instruments. However, the
SdkMeterProvider
provides aregisterView
method which allows developers to specify aggregations for certain instruments. This suggests that we could do the following to achieve histogram aggregations:And we could upgrade the example to use View API once they are ready.