MCPcopy Index your code
hub / github.com/Effect-TS/effect / recordException

Function recordException

packages/opentelemetry/src/internal/tracer.ts:309–318  ·  view source on GitHub ↗
(exception, timeInput)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

convertOtelTimeInputFunction · 0.85
failMethod · 0.65
eventMethod · 0.65

Tested by

no test coverage detected