Merge pull request #2654 from LLK/develop

[MASTER] Deploy sentry fix to stop noisy errors
This commit is contained in:
Paul Kaplan 2019-01-10 11:18:26 -05:00 committed by GitHub
commit 78f96598a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,9 +39,10 @@ const Sentry = require('@sentry/browser');
if (`${process.env.SENTRY_DSN}` !== '') {
Sentry.init({
dsn: `${process.env.SENTRY_DSN}`,
integrations: integrations =>
// Do not collect global onerror, only collect specifically from React error boundaries.
integrations.filter(i => i.name !== 'GlobalHandlers')
// Do not collect global onerror, only collect specifically from React error boundaries.
// TryCatch plugin also includes errors from setTimeouts (i.e. the VM)
integrations: integrations => integrations.filter(i =>
!(i.name === 'GlobalHandlers' || i.name === 'TryCatch'))
});
window.Sentry = Sentry; // Allow GUI access to Sentry via window
}