Skip to main content

Module metrics

Module metrics 

Source

Structs§

ProxyMetrics

Functions§

load_persisted
Cross-process read of the persisted proxy totals, used by the gain CLI/dashboard to reconcile savings against the real number of provider turns.
persist
Atomically write the current in-process totals to disk. The proxy owns these totals for its lifetime, so a plain overwrite (not an additive merge) keeps the file in lock-step with the live atomics.
record_request
snapshot