Expand description
Witness logging and decision audit for the temporal tensor store.
Provides an append-only WitnessLog that records every auditable decision
(tier changes, evictions, checksum failures, etc.) and aggregate
StoreMetrics for dashboards and alerting.
All types are zero-dependency and allocation-minimal so they can live on the hot path without measurable overhead.
§Usage
ⓘ
use ruvector_temporal_tensor::metrics::{WitnessLog, WitnessEvent, StoreMetrics};
let mut log = WitnessLog::new(1024);
log.record(42, WitnessEvent::Eviction {
key: BlockKey(7),
score: 0.1,
bytes_freed: 4096,
});
assert_eq!(log.count_evictions(), 1);Structs§
- Metrics
Series - Ring buffer of
StoreMetricssnapshots for trend analysis. - Metrics
Trend - Trend analysis computed from a
MetricsSeries. - Store
Metrics - Aggregate metrics for the temporal tensor store.
- Store
Snapshot - A point-in-time snapshot of store state for serialization and export.
- Witness
Log - Append-only witness log with configurable capacity.
- Witness
Record - A witness record for an auditable decision.
Enums§
- Store
Health Status - Health status of the store.
- Tier
Change Reason - Reason a block changed tiers.
- Witness
Event - Types of witnessed events.