Skip to content

Commit 3a810a1

Browse files
committed
ChunkLoadErrorを1つにまとめる
1 parent e88d4a7 commit 3a810a1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

instrumentation-client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Sentry.init({
66
Sentry.extraErrorDataIntegration({ depth: 10 }),
77
Sentry.zodErrorsIntegration(),
88
],
9+
beforeSend: function (event, hint) {
10+
if (hint.syntheticException?.name === "ChunkLoadError") {
11+
event.fingerprint = ["ChunkLoadError"];
12+
}
13+
return event;
14+
},
915
// Adds request headers and IP for users
1016
sendDefaultPii: true,
1117
});

0 commit comments

Comments
 (0)