Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@ if (typeof document !== 'undefined') {
// Session Replay
replaysSessionSampleRate: 0.1, // This 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.
beforeSend(event) {
// Filter out errors from third-party ad tech scripts (e.g. Publift's
// Fuse Platform ftUtils.js) that are not actionable by us.
const frames = event.exception?.values?.flatMap(
(v) => v.stacktrace?.frames ?? [],
)
if (
frames &&
frames.length > 0 &&
frames.every((frame) => {
const filename = frame.filename ?? ''
return (
filename.includes('ftUtils.js') ||
filename.includes('fuseplatform.net')
)
})
) {
return null
}
return event
},
})

deferSentryReplayIntegration()
Expand Down
Loading