Skip to content

Commit

Permalink
whattheduck: Add log, record all Sentry replays
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Dec 26, 2024
1 parent 0fcdaaa commit 7b9c014
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/whattheduck/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const updateBundle = async () => {
await CapacitorUpdater.set(bundleInfo);
}
} catch (e) {
console.log('getBundleUrl failed', e);
const { error, errorDetails } = e as unknown as { error: string; errorDetails: string };
switch (error) {
case 'Already up to date':
Expand Down
2 changes: 1 addition & 1 deletion apps/whattheduck/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ router.isReady().then(async () => {
dist: currentBundleVersion,
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
tracesSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
},
SentryVue.init,
Expand Down

0 comments on commit 7b9c014

Please sign in to comment.