Skip to content

Commit

Permalink
update sentry settings to enable session replay
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen committed Nov 20, 2024
1 parent b006140 commit b854ea7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playgrounds/node/astro.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export default defineConfig({
integrations: [
sentry({
dsn: 'https://[email protected]/2',
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
sourceMapsUploadOptions: {
project: 'studiocms-playground',
authToken: process.env.SENTRY_AUTH_TOKEN,
Expand Down
4 changes: 4 additions & 0 deletions playgrounds/node/sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ Sentry.init({
colorScheme: 'system',
isNameRequired: true,
}),
Sentry.replayIntegration(),
],
// Session Replay
replaysSessionSampleRate: 1.0, // `0.1` sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
});

0 comments on commit b854ea7

Please sign in to comment.