Browse Source
Merge pull request #1373 from gre/ignore-sentry
Ignore useless errors that goes to sentry
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
12 additions and
0 deletions
-
src/sentry/install.js
|
|
@ -16,6 +16,18 @@ export default (Raven: any, shouldSendCallback: () => boolean, userId: string) = |
|
|
|
}, |
|
|
|
environment: __DEV__ ? 'development' : 'production', |
|
|
|
shouldSendCallback, |
|
|
|
ignoreErrors: [ |
|
|
|
'status code 404', |
|
|
|
'timeout', |
|
|
|
'socket hang up', |
|
|
|
'getaddrinfo ', |
|
|
|
'ETIMEDOUT', |
|
|
|
'ECONNRESET', |
|
|
|
'ENETUNREACH', |
|
|
|
'request timed out', |
|
|
|
'NetworkDown', |
|
|
|
'ERR_CONNECTION_TIMED_OUT', |
|
|
|
], |
|
|
|
autoBreadcrumbs: { |
|
|
|
xhr: false, // it is track anonymously from logger
|
|
|
|
console: false, // we don't track because not anonymized
|
|
|
|