fix: update sentry collection rate
This commit is contained in:
@@ -4,9 +4,9 @@ import type { HandleClientError } from '@sveltejs/kit';
|
||||
|
||||
Sentry.init({
|
||||
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
|
||||
tracesSampleRate: 0.2,
|
||||
replaysSessionSampleRate: 0,
|
||||
replaysOnErrorSampleRate: 0.5,
|
||||
tracesSampleRate: 1.0, // TODO: lower to 0.2–0.3 once past alpha
|
||||
replaysSessionSampleRate: 0.1, // Record 10% of sessions for UX debugging
|
||||
replaysOnErrorSampleRate: 1.0, // Always record replay when an error happens
|
||||
environment: import.meta.env.MODE,
|
||||
sendDefaultPii: true
|
||||
});
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as Sentry from '@sentry/sveltekit';
|
||||
if (!building) {
|
||||
Sentry.init({
|
||||
dsn: process.env.PUBLIC_SENTRY_DSN,
|
||||
tracesSampleRate: 0.2,
|
||||
tracesSampleRate: 1.0, // TODO: lower to 0.2–0.3 once past alpha
|
||||
environment: process.env.NODE_ENV ?? 'development',
|
||||
sendDefaultPii: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user