Skip to content

Commit f2babc6

Browse files
committed
Sentry configuration to update replay session sample rate to 0.5
1 parent 67132ae commit f2babc6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

instrumentation-client.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ Sentry.init({
88
dsn: "https://8296abef723d97e7b8d5a15d1e93be1f@o4509816683823104.ingest.us.sentry.io/4509831375683584",
99
tunnel: "/api/sentry-tunnel",
1010
// Add optional integrations for additional features
11-
integrations: [Sentry.replayIntegration()],
11+
integrations: [
12+
Sentry.replayIntegration({
13+
maskAllText: false,
14+
maskAllInputs: false,
15+
}),
16+
],
1217
enabled: process.env.NODE_ENV === "production",
1318
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
1419
tracesSampleRate: 1,
@@ -18,7 +23,7 @@ Sentry.init({
1823
// Define how likely Replay events are sampled.
1924
// This sets the sample rate to be 10%. You may want this to be 100% while
2025
// in development and sample at a lower rate in production
21-
replaysSessionSampleRate: 0.1,
26+
replaysSessionSampleRate: 0.5,
2227

2328
// Define how likely Replay events are sampled when an error occurs.
2429
replaysOnErrorSampleRate: 1.0,

0 commit comments

Comments
 (0)