Lock-free, node-local counters for dashboards and health checks.
Each instance has a single :counters array, created when it starts.
Updating a counter is one :counters.add/3 call; reading them all is a
snapshot that callers can diff over time to compute rates.
Summary
Functions
Increments counter name of an instance by one.
Returns the current value of every counter of an instance.
Types
Functions
@spec incr(Limen.Instance.t(), name()) :: :ok
Increments counter name of an instance by one.
@spec snapshot(atom() | Limen.Instance.t()) :: %{ required(name()) => non_neg_integer() }
Returns the current value of every counter of an instance.