(exception, timeInput)
| 316 | }, |
| 317 | isRecording: constTrue, |
| 318 | recordException(exception, timeInput) { |
| 319 | const time = convertOtelTimeInput(timeInput, clock) |
| 320 | const cause = Cause.fail(exception) |
| 321 | const error = Cause.prettyErrors(cause)[0] |
| 322 | span.event(error.message, time, { |
| 323 | "exception.type": error.name, |
| 324 | "exception.message": error.message, |
| 325 | "exception.stacktrace": error.stack ?? "" |
| 326 | }) |
| 327 | } |
| 328 | } |
| 329 | return self |
| 330 | } |
nothing calls this directly
no test coverage detected