chore(deps): update rust crate metrics to v0.24.6#71
Conversation
c8226fa to
448456a
Compare
448456a to
cd288b8
Compare
There was a problem hiding this comment.
Summary
This PR updates the metrics crate from v0.24.3 to v0.24.6 via a Cargo.lock refresh. This is a routine dependency maintenance change managed by Renovate.
Verdict: Ready to approve — no code changes required.
The update includes three minor versions (0.24.4, 0.24.5, 0.24.6) with internal improvements and bug fixes that do not affect the API surface used by this crate. The Cargo.toml already specifies metrics = "0.24", so this update is within the allowed semver range.
Research notes
Fetched the official changelog from metrics-rs/metrics CHANGELOG.md:
Key changes between 0.24.3 → 0.24.6:
0.24.6 (2026-05-13):
- Added: Support for
descriptionandunitparameters incounter!,gauge!,histogram!macros - Fixed: Regression in
KeyHashercausing Registry to insert fresh entries after HashMap resize (#694)
0.24.5 (2026-04-29):
- Fixed: Regression where
hash_labelhashed the label key twice, potentially causing label collisions (#690)
0.24.4 (2026-04-28):
- Changed: Internal key hasher swapped from
ahashtorapidhashfor faster, allocation-free hashing (#651, #669) - Changed:
Keyhash now computed eagerly at construction, removing internal atomics (#669) - Deprecated:
metrics::KeyHasher(usemetrics_util::common::KeyHasherinstead) - Added:
Key::to_retained(),KeyName::to_retained()methods, const fn improvements
Impact analysis for outlet-postgres:
This crate uses metrics minimally:
- Import:
use metrics::{counter, histogram};(line 85) - Usage: Simple
counter!()andhistogram!()macro calls for instrumentation (lines 497, 548, 640, 709)
The codebase does not use:
- Custom key hashing (
KeyHasher) - Complex label manipulation that could be affected by the hash_label fix
- The deprecated types being removed
The API surface used remains stable and backward-compatible.
Suggested next steps
- Approve and merge — This is a safe, routine dependency update with no code changes needed.
- Consider running integration tests in CI to confirm metrics recording behaves as expected (standard practice for any dependency update).
General findings
No issues identified. The change is exactly what it claims to be: a patch-level dependency update within an already-specified semver range. The metrics crate's changelog confirms these are internal improvements and bug fixes that don't affect the simple metric recording patterns used in this codebase.
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.