Weave documentation
Rust referenceweave-lens

weave-lens · metrics

Source declarations, signatures and documentation for metrics.

Reviewed implementation boundary: The current batching helper rejects multiple operations instead of implementing atomic batch commits. Cache/compaction/retention configuration fields do not establish running background compaction. See /libraries/lens/overview.

Source: sigil/weave/models/lens/src/metrics.rs. SHA-256: 9b7b5e0534ab7572e3a58c503f11b6521f913155f08eba14e7fdb8ba05e9d429.

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::LensMetrics

#[derive(Debug, Default)]
pub struct LensMetrics {
pub puts_total: AtomicU64,
pub deletes_total: AtomicU64,
pub snapshots_total: AtomicU64,
pub bytes_written_total: AtomicU64,
pub bytes_read_total: AtomicU64,
pub compactions_total: AtomicU64
}

Source line: 4.

metrics::LensMetricsSnapshot

#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
pub struct LensMetricsSnapshot {
pub puts_total: u64,
pub deletes_total: u64,
pub snapshots_total: u64,
pub bytes_written_total: u64,
pub bytes_read_total: u64,
pub compactions_total: u64
}

Source line: 14.

metrics::LensMetrics::snapshot

pub fn snapshot(&self) -> LensMetricsSnapshot;

Source line: 24.

On this page