testdriverai 7.9.0-test.40 → 7.9.0-test.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/sentry.js +4 -0
- package/package.json +1 -1
package/lib/sentry.js
CHANGED
|
@@ -33,6 +33,10 @@ const isEnabled = () => {
|
|
|
33
33
|
if (process.env.TD_TELEMETRY === "false") {
|
|
34
34
|
return false;
|
|
35
35
|
}
|
|
36
|
+
// Disable in test channel and PR previews
|
|
37
|
+
if (sentryEnvironment === 'staging' || process.env.TD_CHANNEL === 'test' || process.env.IS_PULL_REQUEST === 'true') {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
36
40
|
return true;
|
|
37
41
|
};
|
|
38
42
|
|