chore: Attempt reduction of Sentry size by treeshaking tracing (#15527)

Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
Alex van AndelandKeith Williams authored and GitHub committed 2024-06-24 11:16:19 +00:00
1 parent 08f4a48774
commit 3174b55e21
3 files changed
+7 -4

No files matched your search

-2
View File
@@ -4,8 +4,6 @@ export function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
// reduce sample rate to 10% on production
tracesSampleRate: process.env.NODE_ENV !== "production" ? 1.0 : 0.1,
});
}