Add browser profiling integration and update sample rates

Added browser profiling integration and adjusted profiles sample rate based on environment.
This commit is contained in:
Enno Gelhaus 2025-09-17 21:41:07 +02:00 committed by GitHub
parent 9eb68484ff
commit 87d2a937c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ export const initializeSentryClient = (environment: string, dsn: string) =>
integrations: [
// Add default integrations back
Sentry.browserTracingIntegration(),
Sentry.browserProfilingIntegration(),
Sentry.replayIntegration({
maskAllText: true,
maskAllInputs: true,
@ -17,4 +18,6 @@ export const initializeSentryClient = (environment: string, dsn: string) =>
],
replaysSessionSampleRate: environment === 'development' ? 1.0 : 0.5,
replaysOnErrorSampleRate: 1.0,
profilesSampleRate: environment === 'development' ? 1.0 : 0.1,
});