Skip to content

Commit

Permalink
Added some filter in Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmesh-hemaram committed Dec 31, 2023
1 parent c2ab5e2 commit 2c838b6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
2 changes: 2 additions & 0 deletions apps/acf-extension/src/common/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export const sentryInit = (page: string) => {
'EBCallBackMessageReceived',
// See http://toolbar.conduit.com/Developer/HtmlAndGadget/Methods/JSInjection.aspx
'conduitPage',
'Could not establish connection. Receiving end does not exist.',
'Non-Error promise rejection captured',
],
denyUrls: [
// Facebook flakiness
Expand Down
5 changes: 0 additions & 5 deletions apps/acf-options-page/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as ReactDOM from 'react-dom/client';
import './index.scss';
import { disableContextMenu } from './util';
import App from './App';
import './i18n';
import { BROWSER } from './_helpers';
Expand All @@ -17,7 +16,3 @@ root.render(
<App />
</Provider>
);

if (process.env.NODE_ENV !== 'development') {
disableContextMenu();
}
6 changes: 4 additions & 2 deletions apps/acf-options-page/src/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const sentryInit = () => {
Sentry.init({
dsn: 'https://aacf1f88c133d2c9b4823c4c0b485ecc@o4506036997455872.ingest.sentry.io/4506037000994816',
release,
ignoreErrors: ['NetFunnel is not defined', 'adsbygoogle.push() error: No slot size for availableWidth=0'],
environment: process.env.NX_VARIANT,
// This sets the sample rate to be 10%. You may want this to be 100% while
// in development and sample at a lower rate in production
Expand All @@ -17,8 +18,9 @@ export const sentryInit = () => {
new Sentry.BrowserProfilingIntegration(),
new Sentry.BrowserTracing(),
new Sentry.Replay({
maskAllText: true,
blockAllMedia: true,
maskAllInputs: true,
maskAllText: false,
blockAllMedia: false,
}),
],
// Set tracesSampleRate to 1.0 to capture 100%
Expand Down
14 changes: 0 additions & 14 deletions apps/acf-options-page/src/util/helper.ts

This file was deleted.

1 change: 0 additions & 1 deletion apps/acf-options-page/src/util/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './helper';
export * from './regex';
export * from './validation';
export * from './svg';

0 comments on commit 2c838b6

Please sign in to comment.