chore(deps): update rust crate metrics to v0.24.6#69
Conversation
e71ae50 to
cc8e38c
Compare
cc8e38c to
5f9ec08
Compare
There was a problem hiding this comment.
Summary
This PR updates the metrics crate from v0.24.3 to v0.24.6 via Cargo.lock. This is a routine dependency update that includes three upstream releases (v0.24.4, v0.24.5, v0.24.6) containing internal improvements and critical bug fixes.
Verdict: Approved - This is a safe update with no breaking changes for this codebase's usage pattern.
Research notes
I reviewed the metrics crate changelog for versions 0.24.4 through 0.24.6:
- v0.24.6 (2026-05-13): Fixed a regression in the deprecated
KeyHasherthat caused hash map entry duplication after resize inmetrics_util::registry::Registry - v0.24.5 (2026-04-29): Fixed a label hashing regression where identical label names with different values could collide
- v0.24.4 (2026-04-28): Internal hasher swapped from
ahashtorapidhashfor faster allocation-free hashing; key hashes now computed eagerly at construction time
The outlet codebase only uses the counter!() emission macro (e.g., counter!("outlet_queue_dropped_total").increment(1)), which is part of the stable public API unaffected by these internal hasher changes. The KeyHasher fix in v0.24.6 specifically benefits users of metrics_util::registry::Registry or the deprecated metrics::KeyHasher type—neither of which this project uses.
Suggested next steps
- Merge as-is - This update includes upstream bug fixes that improve correctness without any API changes affecting this codebase.
General findings
None. The change is limited to Cargo.lock and correctly reflects the transitive dependency shift from ahash to rapidhash. The metrics usage in src/lib.rs (lines 99, 319, 321, 544, 767, 771, 881, 884) uses only the standard emission macros which remain unchanged.
This PR contains the following updates:
0.24.3→0.24.6Release Notes
metrics-rs/metrics (metrics)
v0.24.6Compare Source
v0.24.5Compare Source
v0.24.4Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.