otelTraceContext
function otelTraceContext(): TraceContext | null;Defined in: src/access-log.ts:166
Read trace_id / span_id from whatever span is current.
Reading the active span rather than something the framework threads
through is what lets a record correlate with an application-opened span as
readily as with one opened by createOtelHook. Never throws: an
observability failure must not surface as a request failure.
Returns
Section titled “Returns”TraceContext | null
