Expand description
Optional metrics instrumentation for Azoth.
When the observe feature is enabled, key operations emit counters,
histograms, and gauges via the [metrics] crate. A downstream
application must install a metrics recorder (e.g. metrics-exporter-prometheus)
to collect the data.
When the feature is not enabled every function in this module is a zero-cost no-op.
Functionsยง
- record_
backup - Record a backup operation.
- record_
cache_ lookup - Record a preflight cache hit or miss.
- record_
commit - Record a transaction commit (counter + latency histogram).
- record_
lock_ wait - Record a lock acquisition wait time.
- record_
preflight - Record a preflight validation (counter + duration).
- record_
projector_ run - Record a projector run (counter + duration + events processed).
- set_
cache_ size - Set the current preflight cache size gauge.