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 35209fa commit 4ceb796Copy full SHA for 4ceb796
src/index.tsx
@@ -10,26 +10,8 @@ Sentry.init({
10
integrations: [
11
new BrowserTracing()
12
],
13
+ ignoreErrors: [/GraphQL/i, /Failed to fetch/i],
14
tracesSampleRate: 1.0,
- beforeSend(event, hint) {
15
- const error = hint.originalException;
16
-
17
- const ignoreErrors = [
18
- /GraphQL/i, // filter out graphql errors
19
- /Failed to fetch/i // filter out failed to fetch network errors
20
- ]
21
22
- // filter out blacklisted errors
23
- if (error && error.message) {
24
- for (const filter of ignoreErrors) {
25
- if (error.message.match(filter)) {
26
- return null
27
- }
28
29
30
31
- return event;
32
- },
33
});
34
35
const root = document.getElementById('root');
0 commit comments