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

[exporter/elasticsearch] Add exponential histogram support #34818

Merged
merged 20 commits into from
Sep 5, 2024

Conversation

carsonip
Copy link
Contributor

@carsonip carsonip commented Aug 22, 2024

Description:

Convert exponential histograms to T-digest histograms supported by Elasticsearch

Link to tracking Issue:

Fixes #34813

Testing:

Unit tests and exporter test

Documentation:


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?
Copy link
Contributor

@felixbarny felixbarny Aug 23, 2024

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.

@carsonip carsonip marked this pull request as ready for review August 29, 2024 16:00
@carsonip carsonip requested review from a team and codeboten August 29, 2024 16:00
@carsonip carsonip requested a review from felixbarny August 29, 2024 16:03
Copy link
Contributor

@axw axw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@andrzej-stencel andrzej-stencel merged commit 4c490fe into open-telemetry:main Sep 5, 2024
156 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 5, 2024
f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this pull request Sep 12, 2024
…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.>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[exporter/elasticsearch] Support exponential histogram
6 participants