Sentry Enabled in Default settings even if a call it on condition base #5617
FazalNazir
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on an ember project. I have initialized sentry on conditions(SentryEnable) if DSN is given and boolean sentry_enabled is provided true. if both are given then I am calling Sentry. init(). It is working fine on local but when I deployed it on CircleCi the test are failing because of it. The project here is using node version 12 and the sentry I installed here is 6.13.2. So I think that some default settings are still initialized. Can anyone please help here. In app.js
if (SentryEnable) { Sentry.init(); }
In environment.js
if (Constants.useSentry()) { ENV['@sentry/ember'] = { sentry: { dsn: get value from env, environment: get value from env, tracesSampleRate: 1.0 } }; }
Beta Was this translation helpful? Give feedback.
All reactions