Skip to main content

Module persistent

Module persistent 

Source
Expand description

Persistent (on-disk / long-lived) telemetry façade.

This module exposes a stable public API over what will eventually be a disk-backed store. The legacy implementation returned empty collections by design so that callers could be written today without waiting for the storage backend; that behaviour is preserved here byte-for-byte.

Structs§

PersistentStats
Outer wrapper that matches the legacy JSON schema {"stats": { ... }}.
PersistentStatsInner
On-disk cumulative stats payload.

Functions§

get_persistent_stats
Load the persistent stats. Currently returns PersistentStats::default (matches legacy behaviour).
record_persistent
Record a persistent telemetry entry. Currently a tracing-only sink; the signature is kept stable so a future disk-backed implementation can drop in without breaking callers.