recover

suspend fun recover()

Reload persisted metric state from store. Call once at startup before any calls to the mutating methods. Idempotent: a second call re-reads and re-decodes the same bytes.

If persisted state is corrupt or absent for a given kind, that kind starts fresh (a warning is logged). The other kinds are unaffected.