8000 sentry SSR: Don't clear scope · iFixit/react-commerce@16b6857 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 16b6857

Browse files
committed
sentry SSR: Don't clear scope
We were clearing the scope because we were worried that different requests might pollute each other's scopes on the server. Howevever, it looks like Sentry handles this for us, so we don't need to risk blowing away valuable debugging info: getsentry/sentry-javascript#3788
1 parent 7e1519e commit 16b6857

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/sentry/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ export const sentryFetch: typeof fetch = async (resource, options) => {
3131
};
3232

3333
export const setSentryPageContext = (context: GetServerSidePropsContext) => {
34-
Sentry.configureScope((scope) => scope.clear());
3534
Sentry.setTag('resolved_url', urlFromContext(context));
3635
};

0 commit comments

Comments
 (0)
0