|
@@ -3,17 +3,17 @@ import {
|
|
getSentryDSN,
|
|
getSentryDSN,
|
|
getSentryENV,
|
|
getSentryENV,
|
|
getSentryRelease,
|
|
getSentryRelease,
|
|
- isSentryEnabled,
|
|
|
|
|
|
+ getIsSentryEnabled,
|
|
} from 'constants/sentry';
|
|
} from 'constants/sentry';
|
|
|
|
|
|
const SENTRY_DSN = getSentryDSN();
|
|
const SENTRY_DSN = getSentryDSN();
|
|
const SENTRY_ENV = getSentryENV();
|
|
const SENTRY_ENV = getSentryENV();
|
|
const SENTRY_RELEASE = getSentryRelease();
|
|
const SENTRY_RELEASE = getSentryRelease();
|
|
-const ENABLED = isSentryEnabled();
|
|
|
|
|
|
+const IS_ENABLED = getIsSentryEnabled();
|
|
|
|
|
|
Sentry.init({
|
|
Sentry.init({
|
|
dsn: SENTRY_DSN,
|
|
dsn: SENTRY_DSN,
|
|
- enabled: ENABLED,
|
|
|
|
|
|
+ enabled: IS_ENABLED,
|
|
environment: SENTRY_ENV,
|
|
environment: SENTRY_ENV,
|
|
release: SENTRY_RELEASE,
|
|
release: SENTRY_RELEASE,
|
|
autoSessionTracking: false,
|
|
autoSessionTracking: false,
|