When the application provides OpenTelemetry, exception events include the active
span's $trace_id and $span_id. The handler reads the span in the process that
logs the exception, including spans that are not sampled. Event context, log
metadata, and global properties take precedence over these derived IDs.
OpenTelemetry is not required. Missing or unreadable trace context does not prevent exception capture.