diff --git a/CHANGELOG.md b/CHANGELOG.md index c8c744d2..e2c30025 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If - DANE: Treat DNSSEC `bogus` as a temporary failures to prevent downgrade attacks. - OIDC: `ECDSA` private key support for `SEC1` format. - PostgreSQL: Include error chain in error messages. +- Prometheus: event counters are exported with incorrect metric names. ## [0.16.11] - 2026-06-25 diff --git a/crates/trc/src/ipc/metrics.rs b/crates/trc/src/ipc/metrics.rs index e87ac052..bef53026 100644 --- a/crates/trc/src/ipc/metrics.rs +++ b/crates/trc/src/ipc/metrics.rs @@ -8,7 +8,7 @@ use std::sync::atomic::Ordering; use atomics::{array::AtomicU32Array, gauge::AtomicGauge, histogram::AtomicHistogram}; use ipc::{ - collector::{Collector, EVENT_TYPES, GlobalInterests}, + collector::{Collector, GlobalInterests}, subscriber::Interests, }; @@ -216,7 +216,7 @@ impl Collector { let value = value.load(Ordering::Relaxed); if value > 0 { Some(EventCounter { - id: EVENT_TYPES[event_id], + id: EventType::from_id(event_id as u16)?, value, }) } else {