Skip to main content

Module observe

Module observe 

Source
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.