Skip to content

Commit

Permalink
add sentry session replay
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Feb 15, 2025
1 parent 92f965e commit 4af0e95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ window.FPBASE = window.FPBASE || {}
dsn: process.env.SENTRY_DSN,
release: process.env.SOURCE_VERSION,
environment: process.env.NODE_ENV,
});
// Session Replay
integrations: [Sentry.replayIntegration()],
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
})

if (window.FPBASE.user) {
Sentry.setUser(window.FPBASE.user);
Expand Down

0 comments on commit 4af0e95

Please sign in to comment.