(exception, timeInput)
| 307 | }, |
| 308 | isRecording: constTrue, |
| 309 | recordException(exception, timeInput) { |
| 310 | const time = convertOtelTimeInput(timeInput, clock) |
| 311 | const cause = Cause.fail(exception) |
| 312 | const error = Cause.prettyErrors(cause)[0] |
| 313 | span.event(error.message, time, { |
| 314 | "exception.type": error.name, |
| 315 | "exception.message": error.message, |
| 316 | "exception.stacktrace": error.stack ?? "" |
| 317 | }) |
| 318 | } |
| 319 | } |
| 320 | return self |
| 321 | } |
nothing calls this directly
no test coverage detected