MAX_STORED_SNAPSHOTS

Constant MAX_STORED_SNAPSHOTS 

Source
pub const MAX_STORED_SNAPSHOTS: usize = 64;
Expand description

Maximum number of FailureDumpReports the bridge keeps. Captures driven by a Loop step with a unique tag per iteration would otherwise grow the storage map without bound — every report renders a full BTF tree (potentially hundreds of KB), so an uncapped bridge under hostile/runaway capture frequency drains host memory. The bridge enforces FIFO eviction at this cap so the most recent captures stay reachable; eviction logs a tracing::warn! naming the dropped tag so the operator sees the truncation.