pub struct TraceProjector { /* private fields */ }Expand description
Per-session projection state.
Implementations§
Source§impl TraceProjector
impl TraceProjector
Sourcepub fn project(
&mut self,
event: AgentEvent,
now: &str,
new_id: &mut dyn FnMut() -> String,
) -> Vec<IngestionEvent>
pub fn project( &mut self, event: AgentEvent, now: &str, new_id: &mut dyn FnMut() -> String, ) -> Vec<IngestionEvent>
Translates an event into 0..N ingestion events. now is an RFC3339 timestamp.
new_id supplies a unique id (envelope id / trace id) — injected for
deterministic testing.
Auto Trait Implementations§
impl Freeze for TraceProjector
impl RefUnwindSafe for TraceProjector
impl Send for TraceProjector
impl Sync for TraceProjector
impl Unpin for TraceProjector
impl UnsafeUnpin for TraceProjector
impl UnwindSafe for TraceProjector
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