Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sentry Enabled in Default settings even if a call it on condition base #5617

FazalNazir started this conversation in General
Discussion options

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 } }; }

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /