Skip to content

Commit 87d2a93

Browse files
authored
Add browser profiling integration and update sample rates
Added browser profiling integration and adjusted profiles sample rate based on environment.
1 parent 9eb6848 commit 87d2a93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/react-shared-libraries/src/sentry/initialize.sentry.client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const initializeSentryClient = (environment: string, dsn: string) =>
66
integrations: [
77
// Add default integrations back
88
Sentry.browserTracingIntegration(),
9+
Sentry.browserProfilingIntegration(),
910
Sentry.replayIntegration({
1011
maskAllText: true,
1112
maskAllInputs: true,
@@ -17,4 +18,6 @@ export const initializeSentryClient = (environment: string, dsn: string) =>
1718
],
1819
replaysSessionSampleRate: environment === 'development' ? 1.0 : 0.5,
1920
replaysOnErrorSampleRate: 1.0,
21+
22+
profilesSampleRate: environment === 'development' ? 1.0 : 0.1,
2023
});

0 commit comments

Comments
 (0)