Repository navigation
Releases
Releases · prometheus/client_rust
v0.26.0
[0.26.0]
Added
- Implement
PartialEq,EqandHashformetrics::MetricTypeandregistry::Unit. See PR 366. - Added
encoding::prometheus_text::encodeto encode aRegistryin the Prometheus text exposition format (version 0.0.4). See Issue 367 and PR 368.
Changed
- Improved text encoding performance by buffering output internally, reducing
dynamic dispatch overhead. Empty label sets and custom labels that encode no
key no longer produce{}or a stray,in the text output. See PR 370. - Registering a
Counterwith a name ending in_totalnow panics when debug
assertions are enabled, including default development and test builds. When
upgrading, remove the suffix from registered names (for example,foo_total->
foo); encoding adds it automatically. In this example, the exported name
changes fromfoo_total_totaltofoo_total, so update affected queries and
dashboards. The new check is disabled in builds without debug assertions,
including default release builds. See PR 371.
v0.25.2
[0.25.2]
Fixed
- Label values in the text format are now escaped (
\,"and newlines), as the exposition format requires. See PR 347. - The implicit
Histogramoverflow bucket now uses+Infinstead off64::MAXas its upper bound, andHistogram::newdrops non-finite bucket bounds, so an explicitf64::INFINITYno longer produces a duplicatele="+Inf"series. See PR 343.
Changed
- Updated the optional
protoxbuild dependency tov0.10.
v0.25.1
Fixed
- The
EncodeLabelSetandEncodeLabelValuederive macros now emit spanned compile errors for invalid input instead of panicking, so diagnostics point at the offending type or attribute rather than at the derive site. See PR 307.
Changed
- Updated
prometheus-client-derive-encodetov0.5.1, which updates itssyndependency tov3.
v0.25.0
Highlights
Added
- Native histogram support, including native-only histograms and histograms with both classic and native buckets.
- An off-by-default
protobuf-protoxfeature to build protobuf support without requiring an externalprotocbinary.
Changed
prometheus_protobufnow generates and encodes Prometheusio.prometheus.clientprotobuf messages (frommetrics.proto) instead of the OpenMetrics protobuf data model (prometheus/OpenMetrics/issues/296). Theprotobufandopenmetrics_protobuffeatures retain the now-deprecated OpenMetrics protobuf support, which will be removed in a future release.- Updated
prost,prost-build, andprost-typestov0.14.
What's Changed
- protobuf: move from OpenMetrics to Prometheus proto by @howardjohn in #298
- Add @krisztianfekete to MAINTAINERS.md by @krisztianfekete in #302
- Add native histogram support by @howardjohn in #304
- chore: prepare v0.25.0 release by @krisztianfekete in #305
New Contributors
- @krisztianfekete made their first contribution in #302
Full Changelog: v0.24.1...v0.25.0
v0.24.1
What's Changed
- refactor(encoding): remove
ascasts by @jalil-salame in #281 - fix(encoding): do not encode descriptor of empty family by @spoutn1k in #279
- feat(metrics/histogram): 🍪
count()andsum()accessors by @cratelyn in #242 - feat(metrics/family): 🍬
contains()checks if metrics exist by @cratelyn in #245 - feat(metrics/family): 🍭
len()returns the number of metrics by @cratelyn in #246 - feat(encoding): encode usize and isize by @jalil-salame in #282
New Contributors
- @RandomInsano made their first contribution in #261
- @ADD-SP made their first contribution in #265
- @slonkazoid made their first contribution in #274
- @hanabi1224 made their first contribution in #273
- @jalil-salame made their first contribution in #281
- @spoutn1k made their first contribution in #279
- @mozzieongit made their first contribution in #289
Full Changelog: v0.23.1...v0.24.1
v0.24.0
What's Changed
- feat(encoding)!:
EncodeLabelSet::encode()uses reference by @cratelyn in #257 - feat(metrics/family): 🍫 add
Family::get_or_create_owned()by @cratelyn in #244 - Add example using std::io::Write by @RandomInsano in #261
- fix(derive-encode): expand prelude symbols to absolute paths by @ADD-SP in #265
- fix: remove unnecessary Sized boundaries by @slonkazoid in #274
- feat: impl<T: Collector> Collector for std::sync::Arc by @hanabi1224 in #273
- Add support for timestamp encoding in exemplars by @bobrik in #276
New Contributors
- @RandomInsano made their first contribution in #261
- @ADD-SP made their first contribution in #265
- @slonkazoid made their first contribution in #274
- @hanabi1224 made their first contribution in #273
Full Changelog: v0.23.1...v0.24.0