appsignal-nodejs icon indicating copy to clipboard operation
appsignal-nodejs copied to clipboard

`setError()` doesn't work from inside error handler in Fastify

Open luismiramirez opened this issue 1 year ago • 3 comments

The error-handling helpers from our library don't behave as expected when used inside Fastify error handler middleware.

Calling the OpenTelemetry API directly works. Using recordException() on the active span.

Internal link

luismiramirez avatar Nov 21 '24 12:11 luismiramirez