File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ if (AppConfig.serverConfig?.sentryProjectId) {
125
125
ignoreErrors : [
126
126
// the following errors are for this project only
127
127
'ResizeObserver loop limit exceeded' ,
128
+ 'ResizeObserver loop completed' ,
128
129
'Request has been terminated' ,
129
130
'Failed to fetch all transcripts' ,
130
131
'Non-Error promise rejection captured' ,
@@ -176,6 +177,25 @@ if (AppConfig.serverConfig?.sentryProjectId) {
176
177
/ w e b a p p s t o o l b a r b a \. t e x t h e l p \. c o m \/ / i,
177
178
/ m e t r i c s \. i t u n e s \. a p p l e \. c o m \. e d g e s u i t e \. n e t \/ / i,
178
179
] ,
180
+
181
+ // Called for message and error events
182
+ beforeSend ( event ) {
183
+ // identify deprecated API that used for mutation mapper. Do not report such event.
184
+ // we need to upgrade mutation mapper but it's limited by our node version
185
+ const hasInvalidUrl =
186
+ (
187
+ event . breadcrumbs ?. filter ( breadcrumb => {
188
+ const url = breadcrumb . data ?. url || '' ;
189
+ return url . includes ( 'getMutationAligner.json' ) ;
190
+ } ) || [ ]
191
+ ) . length > 0 ;
192
+
193
+ if ( hasInvalidUrl ) {
194
+ return null ;
195
+ } else {
196
+ return event ;
197
+ }
198
+ } ,
179
199
} ) ;
180
200
}
181
201
You can’t perform that action at this time.
0 commit comments