Skip to main content

maybe_log_try_lock_telemetry

Function maybe_log_try_lock_telemetry 

Source
pub fn maybe_log_try_lock_telemetry()
Expand description

Emit a periodic telemetry summary if new try_lock() failures have been recorded since the last call.

This is designed to be called from about_to_wait (once per event-loop iteration) so that lock-contention pressure is surfaced in the debug log without generating per-failure log spam at higher rates. The log entry is only written when at least one new failure occurred since the previous call.