Skip to content

Conversation

@alex
Copy link
Contributor

@alex alex commented Oct 5, 2025

this draws heavily from the Go and Python implementations -- its definitely possible that I missed some essential details, so I'd appreciate a critical review.

in local testing (using the provided example) with a prometheus server, it seems to work!

@alex alex force-pushed the native-histograms branch 3 times, most recently from 264efda to 6a92e79 Compare October 5, 2025 05:53
@tobz tobz added C-exporter Component: exporters such as Prometheus, TCP, etc. E-intermediate Effort: intermediate. T-enhancement Type: enhancement. labels Oct 6, 2025
@alex alex force-pushed the native-histograms branch from 6a92e79 to a60da26 Compare October 7, 2025 19:09
@alex alex force-pushed the native-histograms branch from a60da26 to 708cd6f Compare October 7, 2025 19:28
@tobz
Copy link
Member

tobz commented Oct 23, 2025

Overall, this seems reasonable to me. I gave it a reasonable review, and it all makes sense to me... but I don't really use Prometheus at all so more subtle issues/pitfalls may have very well eluded me during my review. 😅

@alex
Copy link
Contributor Author

alex commented Oct 23, 2025

Thanks for the review! I'll see if I can find any additional reviewers with deeper familiarity with prom native histograms.

@tobz tobz changed the title fixes #601 -- implement native histogram support for metrics-exporter-prometheus enhancement(metrics-exporter-prometheus): implement native histogram support Nov 14, 2025
@tobz
Copy link
Member

tobz commented Nov 14, 2025

In the interest of getting this out there to be played with, I'm going to merge it as-is. Worst case, someone realizes it's broken and we revert it or fix it. 🤷🏻

@alex
Copy link
Contributor Author

alex commented Nov 14, 2025

Cheers!

@tobz tobz merged commit 41a2bb9 into metrics-rs:main Nov 14, 2025
14 checks passed
@tobz tobz added the S-awaiting-release Status: awaiting a release to be considered fixed/implemented. label Nov 14, 2025
@alex alex deleted the native-histograms branch November 14, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-exporter Component: exporters such as Prometheus, TCP, etc. E-intermediate Effort: intermediate. S-awaiting-release Status: awaiting a release to be considered fixed/implemented. T-enhancement Type: enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for optimized histogram representations (otel "ExponentialHistogram" or prometheus native histogram)

2 participants