You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/common/src/utils/analytics.ts
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -102,15 +102,19 @@ export async function initializeSentry(dsn: string) {
102
102
if(
103
103
event.stacktrace&&
104
104
event.stacktrace.frames&&
105
-
event.stacktrace.frames[0]&&
106
-
event.stacktrace.frames[0].filename.endsWith(
107
-
'codesandbox.editor.main.js'
108
-
)
105
+
event.stacktrace.frames[0]
109
106
){
110
-
// This is the spammy event that doesn't do anything: https://sentry.io/organizations/codesandbox/issues/1054971728/?project=155188&query=is%3Aunresolved
111
-
// Don't do anything with it right now, I can't seem to reproduce it for some reason.
112
-
// We need to add sourcemaps
113
-
returnundefined;
107
+
const{ filename }=event.stacktrace.frames[0];
108
+
109
+
if(
110
+
filename.endsWith('codesandbox.editor.main.js')||
111
+
filename.startsWith('/extensions/')
112
+
){
113
+
// This is the spammy event that doesn't do anything: https://sentry.io/organizations/codesandbox/issues/1054971728/?project=155188&query=is%3Aunresolved
114
+
// Don't do anything with it right now, I can't seem to reproduce it for some reason.
0 commit comments