pub trait MetricsObserver {
// Required method
fn increment(&self, counter: &'static str, outcome: Option<Outcome>);
}Expand description
Optional observability sink for metrics and counters (RFC-024).
All implementations must be no-op by default (see NoopMetrics).
Implementations must not include high-cardinality or sensitive values in
metric labels — no code IDs, subject IDs, IP addresses, lookup keys, or
raw scopes.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".