File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import type {
66
77import {
88 beforeSentryAlertSend ,
9+ SENTRY_DENY_URLS ,
910 SENTRY_IGNORE_ERRORS ,
1011} from "@/utils/core/errors" ;
1112
@@ -27,7 +28,8 @@ export function buildSentryOptions<
2728
2829 return 0.1 ;
2930 } ,
30- ignoreErrors : SENTRY_IGNORE_ERRORS as ( string | RegExp ) [ ] ,
31+ ignoreErrors : SENTRY_IGNORE_ERRORS ,
32+ denyUrls : SENTRY_DENY_URLS ,
3133 beforeSend : beforeSentryAlertSend ,
3234 } as T ;
3335}
Original file line number Diff line number Diff line change @@ -165,6 +165,14 @@ export const SENTRY_IGNORE_ERRORS: string[] = [
165165 "Can't find variable: logMutedMessage" ,
166166] ;
167167
168+ export const SENTRY_DENY_URLS : ( string | RegExp ) [ ] = [
169+ / ^ a p p : \/ \/ \/ / ,
170+ / e x t e n s i o n s \/ / i,
171+ / ^ c h r o m e : \/ \/ / i,
172+ / ^ c h r o m e - e x t e n s i o n : \/ \/ / i,
173+ / ^ m o z - e x t e n s i o n : \/ \/ / i,
174+ ] ;
175+
168176export function beforeSentryAlertSend ( event : ErrorEvent , hint : EventHint ) {
169177 const error = hint . originalException ;
170178
You can’t perform that action at this time.
0 commit comments