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

feat(otlp): Allow conversion of OTel explicit bucket histograms into NHCB #11077

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

carrieedwards
Copy link

What this PR does

This PR adds the ability to optionally translation OTel explicit bucket histograms into native histograms with custom buckets, using the flag added in prometheus/prometheus#15850.

Which issue(s) this PR fixes or relates to

Fixes #
Related to prometheus/prometheus#13485.

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

Copy link
Contributor

github-actions bot commented Apr 1, 2025

@carrieedwards carrieedwards force-pushed the cedwards/otel-convert-hists-to-nhcb branch from a96fdf2 to 2c39903 Compare April 2, 2025 09:54
@krajorama krajorama self-requested a review April 2, 2025 13:17
Copy link
Contributor

@krajorama krajorama 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! I think it's time we added an integration test next to otlp_ingestion_test.go that checks conversion of explicit and exponential otlp histograms to classic/nhcb and native histograms. So I'm thinking of sending a JSON that has an explicit and an exponential histogram and the two test variants differ in the setting of the new config param.

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.

2 participants