Expand description
Log spam protection helpers.
Atomic helper functions for per-site log rate limiting.
Use alongside the global tracing-throttle layer for defence-in-depth.
Functions§
- log_
debounced - Log at most once per interval. Returns true if enough time has passed.
- log_
sampled - Log every Nth occurrence. Returns true on first call and every
sample_rate-th call. - log_
state_ change - Log on state transition only. Returns true if state changed.