strand-blobs · metrics
Source declarations, signatures and documentation for metrics.
Reviewed implementation boundary: The current GC path quarantines records without reclaiming their stored files. Check actual writer/list/report interfaces and partial-write behavior in /libraries/strand-blobs/overview.
Source: sigil/weave/models/strand-blobs/src/metrics.rs. SHA-256: af748bd11b4f3f7a32bdb2fdf3ed3968178d70cc1f288cc955a49ef757b86eb0.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
metrics::BlobMetrics
Runtime counters for blob operations
#[derive(Debug, Default)]
pub struct BlobMetrics {
pub bytes_in_total: AtomicU64,
pub bytes_out_total: AtomicU64,
pub chunks_in_total: AtomicU64,
pub chunks_out_total: AtomicU64,
pub gc_runs_total: AtomicU64,
pub put_ops_total: AtomicU64,
pub put_latency_total_ms: AtomicU64,
pub get_ops_total: AtomicU64,
pub get_latency_total_ms: AtomicU64
}Source line: 7.
metrics::BlobMetrics::snapshot
pub fn snapshot(&self) -> BlobMetricsSnapshot;Source line: 20.
metrics::BlobMetricsSnapshot
#[derive(Debug, Clone, Copy)]
pub struct BlobMetricsSnapshot {
pub bytes_in_total: u64,
pub bytes_out_total: u64,
pub chunks_in_total: u64,
pub chunks_out_total: u64,
pub gc_runs_total: u64,
pub put_ops_total: u64,
pub put_latency_total_ms: u64,
pub get_ops_total: u64,
pub get_latency_total_ms: u64,
pub cache_hits: u64,
pub cache_misses: u64
}Source line: 38.