We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ef4bc1 commit cd6d3bfCopy full SHA for cd6d3bf
src/error-tracking.ts
@@ -9,8 +9,14 @@ let sentryInitialized = false;
9
export function initErrorTracking() {
10
const packageJson = require('../package.json');
11
12
- let { SENTRY_DSN } = process.env;
13
- if (!SENTRY_DSN && IS_PROD_BUILD) {
+ let { SENTRY_DSN, CI } = process.env;
+
14
+ const shouldBeEnabled = IS_PROD_BUILD && !CI;
15
16
+ // Note that we disable all error reporting in CI envs, both our own & others. They
17
+ // tend to be weird configurations that aren't representative so this isn't useful.
18
19
+ if (!SENTRY_DSN && shouldBeEnabled) {
20
// If we're a built binary, use the standard DSN automatically
21
SENTRY_DSN = 'https://[email protected]/1371158';
22
}
0 commit comments