From 7919eb8e040be2f1300f87676ee7acc92108d3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Fri, 3 Aug 2018 15:37:12 +0200 Subject: [PATCH] Ignore useless errors that goes to sentry --- src/sentry/install.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/sentry/install.js b/src/sentry/install.js index 5b78ddf8..5d75ed47 100644 --- a/src/sentry/install.js +++ b/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