File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
packages/common/src/utils Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ function getSentry() {
2121 return import ( /* webpackChunkName: 'sentry' */ '@sentry/browser' ) ;
2222}
2323export async function initializeSentry ( dsn : string ) {
24- const Sentry = await getSentry ( ) ;
2524 if ( ! DNT ) {
2625 sentryInitialized = true ;
26+ const Sentry = await getSentry ( ) ;
2727
2828 return Sentry . init ( {
2929 dsn,
@@ -33,8 +33,15 @@ export async function initializeSentry(dsn: string) {
3333 'TypeScript Server Error' , // Called from the TSC server
3434 / ^ C a n c e l e d $ / , // Used by VSCode to stop currently running actions
3535 ] ,
36+ /**
37+ * Don't send messages from the sandbox, so don't send from eg.
38+ * new.codesandbox.io or new.csb.app
39+ */
40+ blacklistUrls : [ / .* \. c o d e s a n d b o x \. i o / , / .* \. c s b \. a p p / ] ,
3641 } ) ;
3742 }
43+
44+ return Promise . resolve ( ) ;
3845}
3946
4047export async function logError ( err : Error ) {
You can’t perform that action at this time.
0 commit comments