immobiliare/fastify-sentry

Support skipping call to `Sentry.init()`

spaceemotion opened this issue ยท 3 comments

I am using a fastify server inside of AWS Lambda and thus already have a Sentry instance initialized. It would be nice to have an option to simply skip the Sentry initalization step to not confuse the library.

dnlup commented

Hi @spaceemotion , thank you for opening this. I am looking at the docs here and here and I can see the use case. Would a simple boolean flag in the plugin options be enough?

fastify.register(fastifySentryPlugin, {
  skipInit: true
})

or do we need something more?

Thanks for looking into this. I think that flag should do it :)

๐ŸŽ‰ This issue has been resolved in version 7.1.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€