capture
Map event to a LogRecord and export it.
Returns the exporter's ExportResult, or null if event was dropped before any record was built — because its loggerName is one of the exporter's own (us.tractat.kuilt.otel) loggers (the self-capture exclusion above), because it was below CaptureConfig.minLevel, or because the trace gate dropped it: when a TraceContextProvider is wired, an active-but-unsampled trace is dropped, and an untraced event is dropped when CaptureConfig.untracedPolicy is UntracedPolicy.DROP. On a sampled trace the record is stamped with the trace's traceId/spanId.
The gate reads the resolved trace and the record uses the resolved attributes, both snapshotted at the synchronous edge via resolveAtEdge. Neither the trace provider nor the attribute mapper is consulted from this drain-side path, so ambient state that only exists on the caller is honoured (#1034, #1630).
Unresolved events cannot enter this path. Direct callers at their log site use captureNow, which resolves before exporting.
See captureAll for the batched counterpart — same mapping, same gates, one export for a whole run of events.