Skip to main content

Module counter

Module counter 

Source
Expand description

Recommended counter names (RFC-024 §metrics).

Use these constants as the counter argument to MetricsObserver::increment so metric names stay consistent across adapters and host integrations.

Constants§

CODE_CLAIM_LOST
The atomic claim was lost to a concurrent caller.
CODE_CLAIM_WON
The atomic claim succeeded (exactly one winner).
CODE_ISSUED
A one-time code was successfully issued.
CODE_REDEEM_ATTEMPT
A code redemption was attempted (normalised and looked up).
FORM_TOKEN_CONSUME
A form-token consume call completed (use outcome to distinguish).
RATE_LIMIT_BLOCKED
A rate-limit check blocked an operation.
SESSION_ISSUED
A session was successfully issued.
SESSION_VALIDATE
A session validation attempt completed.