LogCapture
constructor(exporter: WarpLogRecordExporter, config: CaptureConfig, clock: Clock, random: Random, traceContextProvider: TraceContextProvider? = null)
Parameters
exporter
the durable log buffer this capture writes into.
config
which events to keep and how to shape their attributes.
clock
source of the record timestamps (required — never the wall clock). Read twice per record on a queueing edge: once by resolveAtEdge for the event time, once by capture for the observed time.
random
source of the per-record id bytes (required — never an unseeded default).
traceContextProvider
optional trace/sampling gate. When null (the M1 default) capture is always-on and records carry no trace ids. When set, the trace is resolved at the synchronous capture edge via resolveAtEdge and carried on NormalizedLogEvent.activeTrace; capture then gates on that snapshot (see resolveAtEdge and capture).