Expand description
In-process counters for the release-locks-at-submit feature.
PR1 uses AtomicU64 counters rather than pulling in a full metrics crate.
The values are emitted through tracing::info! events with a standardized
metric field so existing log-based tooling can aggregate them, and the
counters themselves are readable from tests and any future Prometheus
exporter we might bolt on.
Functions§
- incr_
locks_ released_ on_ submit - Increment the “locks released on submit” counter and emit a structured tracing event so log-based aggregators can surface it.
- incr_
stale_ overlay_ rejected - Increment the “STALE_OVERLAY rejected” counter.
- locks_
released_ on_ submit_ total - Snapshot of the “locks released on submit” counter (for tests + future scrape endpoints).
- stale_
overlay_ rejected_ total - Snapshot of the “STALE_OVERLAY rejected” counter.