maintainability
values()` returns `[..., sweep_bytes_reclaimed, sweep_blobs_removed]` while `COUNTERS` is `[..., ("cairn_proxy_sweep_blobs_removed_total", ...), ("cairn_proxy_sweep_bytes_reclaimed_total", ...)]`;… values()` returns `[..., sweep_bytes_reclaimed, sweep_blobs_removed]` while `COUNTERS` is `[..., ("cairn_proxy_sweep_blobs_removed_total", ...), ("cairn_proxy_sweep_bytes_reclaimed_total", ...)]`; `render` zips them in declaration order, so the published Prometheus metrics swap names and values - `cairn_proxy_sweep_blobs_removed_total` reports bytes and `cairn_proxy_sweep_bytes_reclaimed_total` reports blob counts. The comment on the `COUNTERS` array is explicitly about preventing this class of mismatch.
services/proxy/src/metrics.rs:88-97
Evidence quote
Not recorded
Suggested fix
Not recorded