Skip to content

v0.26.0

Latest

Choose a tag to compare

@krisztianfekete krisztianfekete released this 11 Nov 09:33
· 7 commits to master since this release
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.