JSONL file writer — one JSON object per line, buffered sync writes
Buffers up to 64 events in memory before flushing to the underlying
file descriptor with fs.writeSync. Flush also occurs at every
traceScope close boundary to guarantee scope pairs are
persisted promptly.
Construct with an open file descriptor (e.g. from fs.openSync).
Write failures are silently swallowed — tracing must never crash
the runtime.
JSONL file writer — one JSON object per line, buffered sync writes
Buffers up to 64 events in memory before flushing to the underlying file descriptor with
fs.writeSync. Flush also occurs at every traceScope close boundary to guarantee scope pairs are persisted promptly.Construct with an open file descriptor (e.g. from
fs.openSync). Write failures are silently swallowed — tracing must never crash the runtime.