Skip to content

Commit 113c243

Browse files
committed
sentry removed user ip and geo collection
1 parent 784cc57 commit 113c243

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

web-app/src/sentry.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ if (dsn) {
6767
replaysSessionSampleRate,
6868
replaysOnErrorSampleRate,
6969
ignoreErrors: [/ResizeObserver loop limit exceeded/i],
70+
beforeSend(event) {
71+
// remove user IP and geo context
72+
if (event.user) {
73+
delete event.user.ip_address;
74+
}
75+
if (event.contexts && event.contexts.geo) {
76+
delete event.contexts.geo;
77+
}
78+
return event;
79+
}
7080
});
7181
}
7282

0 commit comments

Comments
 (0)