[@opentelemetry/instrumentation-fastify] Breaks use of preClose with fastify #1762
Labels
bug
Something isn't working
priority:p1
Bugs which cause problems in end-user applications such as crashes, data inconsistencies
What version of OpenTelemetry are you using?
@opentelemetry/[email protected]
@opentelemetry/[email protected]
What version of Node are you using?
v20.9.0
What did you do?
When adding the hook
preClose
hook to fastify the application crashes when thepreClose
hook is called with this error:onClose
works as expected, but it appears thatpreClose
needs to be added to the list of applicationHooks here:opentelemetry-js-contrib/plugins/node/opentelemetry-instrumentation-fastify/src/constants.ts
Line 21 in 1b0caa6
Reproducible Example
What did you expect to see?
I expect
preClose
should work as expected.What did you see instead?
Application crashes when
preClose
is calledAdditional context
The text was updated successfully, but these errors were encountered: