-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[exporter/elasticsearch] Add exponential histogram support #34818
[exporter/elasticsearch] Add exponential histogram support #34818
Conversation
4d0f813
to
587e05a
Compare
|
||
if zeroCount := dp.ZeroCount(); zeroCount != 0 { | ||
counts.AppendEmpty().SetInt(int64(zeroCount)) | ||
// FIXME: do we really have to take the median of last negative and first positive, instead of using 0? |
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.
I'd expect us to be able to just use 0
. If the offsets if the positive and negative scale are the same, the midpoint is always zero. If the offsets are different, I don't think the midpoint value is meaningful. As the zero count is the count of values that are zero (or within the zero_threshold
), I think we should just use 0
as the value.
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.
Looks great!
exporter/elasticsearchexporter/internal/exphistogram/exphistogram.go
Outdated
Show resolved
Hide resolved
…metry#34818) **Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> Convert exponential histograms to T-digest histograms supported by Elasticsearch **Link to tracking Issue:** <Issue number if applicable> Fixes open-telemetry#34813 **Testing:** <Describe what testing was performed and which tests were added.> Unit tests and exporter test **Documentation:** <Describe the documentation added.>
Description:
Convert exponential histograms to T-digest histograms supported by Elasticsearch
Link to tracking Issue:
Fixes #34813
Testing:
Unit tests and exporter test
Documentation: