pub struct RingTraceStore { /* private fields */ }Expand description
The built-in bounded sink: FIFO ring (global) + per-scope cap + per-session index. Thread-safe; queries are consistent snapshots.
Implementations§
Source§impl RingTraceStore
impl RingTraceStore
pub fn with_capacity(cap: usize, per_scope_cap: usize) -> Self
pub fn clear(&self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn aggregate(&self, f: &TraceFilter) -> Vec<TraceStats>
pub fn aggregate(&self, f: &TraceFilter) -> Vec<TraceStats>
Aggregate statistics, grouped by (provider, model), filtered.
Sourcepub fn session_chain(&self, session_id: &str) -> Option<SessionChainView>
pub fn session_chain(&self, session_id: &str) -> Option<SessionChainView>
Session chain view: ordered record ids + prefix stability + breaks.
Sourcepub fn session_cache_trajectory(&self, session_id: &str) -> Vec<SessionStepStat>
pub fn session_cache_trajectory(&self, session_id: &str) -> Vec<SessionStepStat>
Per-step cache-hit trajectory of a session (RFC-0024 §4.3
session_cache_trajectory): one SessionStepStat per call, in
session order, with the reported hit rate and audit verdict (when an
auditor is attached). Empty for unknown sessions.
Trait Implementations§
Source§impl Default for RingTraceStore
impl Default for RingTraceStore
Auto Trait Implementations§
impl !Freeze for RingTraceStore
impl RefUnwindSafe for RingTraceStore
impl Send for RingTraceStore
impl Sync for RingTraceStore
impl Unpin for RingTraceStore
impl UnsafeUnpin for RingTraceStore
impl UnwindSafe for RingTraceStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more