Skip to content

Releases

v0.26.0

Choose a tag to compare

@krisztianfekete krisztianfekete released this 11 Nov 09:33
5801bff

[0.26.0]

Added

  • Implement PartialEq, Eq and Hash for metrics::MetricType and registry::Unit. See PR 366.
  • Added encoding::prometheus_text::encode to encode a Registry in 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 Counter with a name ending in _total now 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 from foo_total_total to foo_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

Choose a tag to compare

@krisztianfekete krisztianfekete released this 30 Oct 13:52
4a99f73

[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 Histogram overflow bucket now uses +Inf instead of f64::MAX as its upper bound, and Histogram::new drops non-finite bucket bounds, so an explicit f64::INFINITY no longer produces a duplicate le="+Inf" series. See PR 343.

Changed

  • Updated the optional protox build dependency to v0.10.

v0.25.1

Choose a tag to compare

@krisztianfekete krisztianfekete released this 01 Sep 17:01
3e3d55c

Fixed

  • The EncodeLabelSet and EncodeLabelValue derive 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-encode to v0.5.1, which updates its syn dependency to v3.

v0.25.0

Choose a tag to compare

@krisztianfekete krisztianfekete released this 15 Jun 06:54
d6f2c2e

Highlights

Added

  • Native histogram support, including native-only histograms and histograms with both classic and native buckets.
  • An off-by-default protobuf-protox feature to build protobuf support without requiring an external protoc binary.

Changed

  • prometheus_protobuf now generates and encodes Prometheus io.prometheus.client protobuf messages (from metrics.proto) instead of the OpenMetrics protobuf data model (prometheus/OpenMetrics/issues/296). The protobuf and openmetrics_protobuf features retain the now-deprecated OpenMetrics protobuf support, which will be removed in a future release.
  • Updated prost, prost-build, and prost-types to v0.14.

What's Changed

New Contributors

Full Changelog: v0.24.1...v0.25.0

v0.24.1

Choose a tag to compare

@mxinden mxinden released this 31 Mar 09:57
v0.24.1
4a6d40a

What's Changed

  • refactor(encoding): remove as casts by @jalil-salame in #281
  • fix(encoding): do not encode descriptor of empty family by @spoutn1k in #279
  • feat(metrics/histogram): 🍪 count() and sum() 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

Full Changelog: v0.23.1...v0.24.1

v0.24.0

Choose a tag to compare

@mxinden mxinden released this 15 Aug 12:25
v0.24.0
7844d86

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

Full Changelog: v0.23.1...v0.24.0

v0.23.1

Choose a tag to compare

@mxinden mxinden released this 15 Jan 18:04
v0.23.1
9a74e99

See changelog for details.

v0.23.0

Choose a tag to compare

@mxinden mxinden released this 07 Jan 08:51
v0.23.0
cbde2cb

See changelog for details.

v0.22.3

Choose a tag to compare

@mxinden mxinden released this 17 Jul 06:46
v0.22.3
7f570f3

See changelog for details.

v0.22.2

Choose a tag to compare

@mxinden mxinden released this 07 Mar 09:47
v0.22.2
de27234

See changelog for details.