File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ function EpicProgress() {
18
18
if ( ! ref . current ) return
19
19
if ( delayedPending ) setAnimationComplete ( false )
20
20
21
- const animationPromises = ref . current
22
- . getAnimations ( )
21
+ const animationPromises = ref . current ?. getAnimations ( )
23
22
. map ( ( { finished } ) => finished )
24
23
25
24
void Promise . allSettled ( animationPromises ) . then ( ( ) => {
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export function init() {
20
20
integrations : [
21
21
Sentry . httpIntegration ( ) ,
22
22
Sentry . prismaIntegration ( ) ,
23
+ Sentry . httpContextIntegration ( ) ,
23
24
nodeProfilingIntegration ( ) ,
24
25
] ,
25
26
tracesSampler ( samplingContext ) {
@@ -36,6 +37,13 @@ export function init() {
36
37
return null
37
38
}
38
39
40
+ // Check if the event contains an HTTP context with a response status code
41
+ // 405 Method Not Allowed
42
+ if ( event . contexts ?. response ?. status_code === 405 ) {
43
+ // Return null to drop the event and prevent it from being sent to Sentry
44
+ return null ;
45
+ }
46
+
39
47
return event
40
48
} ,
41
49
} )
You can’t perform that action at this time.
0 commit comments