Skip to main content

Module write_counters

Module write_counters 

Source
Expand description

Process-wide attribution of AFT-owned writes.

Writers register a (domain, root) counter once and retain the returned Counter. Crediting that counter is only two relaxed atomic additions; registry locking and string allocation stay off the write path.

Structs§

Counter
Pre-registered, allocation-free write-path counter.
Entry
ProcessBaseline
RecentRow
Registry
UnmeasurableEntry
WriterRow

Enums§

Domain
Closed attribution vocabulary used by persistence and management clients.

Constants§

DEFAULT_WINDOW_MS
MINUTE_MS
RETENTION_MS

Functions§

credit
Convenience for operation-boundary instrumentation. Repeated/hot writers should retain a Counter instead.
note_process_unmeasurable
process_root_counter
register
registry
saturating_add