Skip to main content

write_event

Function write_event 

Source
pub fn write_event(event: &mut Event) -> Result<String, WriteError>
Expand description

Compute the event hash and set it on a mutable Event, then serialize.

This is the primary write path: it computes the content hash, stores it in event.event_hash, and returns the full TSJSON line (with newline).

ยงErrors

Same as to_tsjson_line.