You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[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.