Record an exception on the current active span. No-op if OTel is not available or no active span exists.
Record an exception on the current active span. No-op if OTel is not available or no active span exists.