Skip to content

Commit

Permalink
feat(sentry): set up sampling and replays
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerzl committed Oct 1, 2024
1 parent 4ec22d7 commit 8ca8fad
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,20 @@ Sentry.init({
// There isn't any way to get the dsn from env var here
environment: useRuntimeConfig().public.sentry.environment,
dsn: useRuntimeConfig().public.sentry.dsn,
// This sets the sample rate to be 10%. You may want this to be 100% while
// in development and sample at a lower rate in production
replaysSessionSampleRate: 0.1,

// If the entire session is not sampled, use the below sample rate to sample
// sessions when an error occurs.
replaysOnErrorSampleRate: 1.0,

integrations: [
Sentry.replayIntegration({
// Additional SDK configuration goes in here, for example:
maskAllText: true,
blockAllMedia: true,
}),
Sentry.browserTracingIntegration(),
],
})

0 comments on commit 8ca8fad

Please sign in to comment.