Skip to content

Commit

Permalink
perf: configure profiling using sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
newarifrh committed Aug 26, 2024
1 parent bf64e87 commit e228fb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Sentry.init({
integrations: [
Sentry.browserTracingIntegration(),
Sentry.replayIntegration(),
Sentry.browserProfilingIntegration(),
],
release: MODE == "production" ? APP_VERSION : BUILD_HASH,
environment: MODE,
Expand All @@ -21,6 +22,7 @@ Sentry.init({

replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
profilesSampleRate: 1.0,
});

createRoot(document.getElementById("root")!).render(
Expand Down

0 comments on commit e228fb9

Please sign in to comment.