pub struct JsonlSink { /* private fields */ }Expand description
Append-only JSONL sink backed by a single file.
Thread-safe via an interior Mutex<BufWriter>. Writes one JSON line
per event terminated by '\n'.
Implementations§
Trait Implementations§
Source§impl TelemetrySink for JsonlSink
impl TelemetrySink for JsonlSink
Source§fn record_summary(&self, summary: &SessionSummary) -> Result<()>
fn record_summary(&self, summary: &SessionSummary) -> Result<()>
Append the session summary at session close. Default no-op for
sinks that don’t distinguish rollups.
Auto Trait Implementations§
impl !Freeze for JsonlSink
impl RefUnwindSafe for JsonlSink
impl Send for JsonlSink
impl Sync for JsonlSink
impl Unpin for JsonlSink
impl UnsafeUnpin for JsonlSink
impl UnwindSafe for JsonlSink
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