NodeJS: Disable creating Sentry issues for application level crashes/thrown errors #11550
Unanswered
glory-omcare
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to disable creating Sentry issues whenever application level critical errors are thrown on a nodeJS application.
The nodeJS application is being executed on a local machine within a Docker container. This is how Sentry initialization is currently implemented:
The idea is for when application variable SENTRY_ENABLED=true, that Sentry issues/events are created accordingly as HTTP transactions or critical application errors are thrown.
The issue is when SENTRY_ENABLED=false, Sentry issues can still be created if there are any critical errors caused by any code written outside of the try catch block.
Is there are better way to appropriately "disable" Sentry issue tracking dynamically as is needed on an application level?
Beta Was this translation helpful? Give feedback.
All reactions