Supports Histogram Aggregation - #2575
Conversation
jkwatson
left a comment
There was a problem hiding this comment.
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!
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
SdkMeterProviderprovides aregisterViewmethod 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.