Persist a single event for a session.
Unique identifier for grouping related events. Used for partitioning and log file naming.
The trace event to persist. See TracerEvent for structure.
Void or Promise
Flush any buffered events to the underlying storage.
Promise that resolves when all buffered events are persisted
Optionalclose
Extended sink interface that supports buffering and explicit cleanup.
Buffered sinks can improve performance by batching events before writing to the underlying storage. They also provide explicit control over flushing and cleanup.
Remarks
Example