pub struct AnalyticsIngestor<'a> { /* private fields */ }Expand description
Stateless event projector. Partial pairs (start without completion or
completion without start) remain visible as running/partial records
— they never panic or block later events.
Implementations§
Source§impl<'a> AnalyticsIngestor<'a>
impl<'a> AnalyticsIngestor<'a>
pub fn new(store: &'a AnalyticsStore) -> Self
Sourcepub fn ingest_event(&self, envelope: &EventEnvelope) -> Result<()>
pub fn ingest_event(&self, envelope: &EventEnvelope) -> Result<()>
Projects one envelope. Unknown events are ignored. Token usage is
recorded only from terminal turn events (TurnCompleted/TurnFailed
carry the turn-total usage), so streamed per-step usage events can
never double-count a turn.
Auto Trait Implementations§
impl<'a> Freeze for AnalyticsIngestor<'a>
impl<'a> RefUnwindSafe for AnalyticsIngestor<'a>
impl<'a> Send for AnalyticsIngestor<'a>
impl<'a> Sync for AnalyticsIngestor<'a>
impl<'a> Unpin for AnalyticsIngestor<'a>
impl<'a> UnsafeUnpin for AnalyticsIngestor<'a>
impl<'a> UnwindSafe for AnalyticsIngestor<'a>
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