Skip to content

Commit d00fd93

Browse files
authored
Merge pull request #318 from onflow/improvement/sentry-filter
Sentry filter
2 parents 4397c6b + 4ceb796 commit d00fd93

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
import * as React from 'react';
22
import * as ReactDOM from 'react-dom';
3-
43
import * as Sentry from '@sentry/react';
54
import { BrowserTracing } from '@sentry/tracing';
6-
import { CaptureConsole as CaptureConsoleIntegration } from '@sentry/integrations';
75

86
import App from './App';
97

108
Sentry.init({
119
dsn: process.env.SENTRY_DSN,
1210
integrations: [
13-
new BrowserTracing(),
14-
new CaptureConsoleIntegration({ levels: ['error'] }),
11+
new BrowserTracing()
1512
],
13+
ignoreErrors: [/GraphQL/i, /Failed to fetch/i],
1614
tracesSampleRate: 1.0,
1715
});
1816

0 commit comments

Comments
 (0)