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