sentry-module icon indicating copy to clipboard operation
sentry-module copied to clipboard

Disabling Sentry with runtime config

Open shivam-deepsource opened this issue 4 years ago • 4 comments

Is it possible to disable sentry using the runtime config instead of the build time?

shivam-deepsource avatar Aug 06 '21 05:08 shivam-deepsource

No, not right now at least.

rchl avatar Aug 19 '21 10:08 rchl

Is this in the roadmap or being considered adding to the roadmap?

shivam-deepsource avatar Aug 30 '21 06:08 shivam-deepsource

There are limitations on what can be done given how Nuxt modules work.

While we would likely be able to toggle the "initialize" option based on runtime config, we are not able to decide at runtime whether to include the Sentry plugin in the bundle or not. This can be only decided at build time.

What are your expectations exactly here? That the functionality is disabled/enabled based on runtime config or that none of the code is included when disabled?

rchl avatar Aug 30 '21 08:08 rchl

The functionality disabled alone is what I am looking for. Don't mind the code inclusion.

shivam-deepsource avatar Sep 07 '21 06:09 shivam-deepsource