Skip to main content

Module metrics

Module metrics 

Source
Expand description

Per-instance metrics wrapper.

Wraps the base MpscQueue with relaxed atomic counters for enqueue success/fail, dequeue success/fail, total batch items drained, and CAS retries. Counters are relaxed because they’re advisory diagnostics, not ordering primitives.

All counters are zero-cost when the wrapper isn’t used; the feature flag keeps them out of the base build.

Structs§

MetricsMpscQueue
Wrapping queue that tracks per-instance counters.
QueueMetricsSnapshot
Immutable snapshot of the counters at one instant.