Skip to content

Commit be8f882

Browse files
committed
feat: Adjust Sentry sampling rates for traces, profiles, and sessions to improve performance
1 parent b38d9e0 commit be8f882

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/api/src/instrument.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ if (!process.env.SESAME_SENTRY_DSN) {
1111
debug: false,
1212

1313
sendDefaultPii: true,
14-
tracesSampleRate: 1.0,
15-
profilesSampleRate: 1.0,
14+
tracesSampleRate: 0.1,
15+
profilesSampleRate: 0.1,
1616
includeLocalVariables: true,
17-
profileSessionSampleRate: 1.0,
17+
profileSessionSampleRate: 0.1,
1818
profileLifecycle: 'trace',
1919
normalizeDepth: 10,
2020
attachStacktrace: true,

apps/web/sentry.client.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if (!runtimeConfig.public?.sentry?.dsn) {
1414

1515
sendDefaultPii: true,
1616

17-
tracesSampleRate: 1.0,
18-
profilesSampleRate: 1.0,
19-
profileSessionSampleRate: 1.0,
17+
tracesSampleRate: 0.1,
18+
profilesSampleRate: 0.1,
19+
profileSessionSampleRate: 0.1,
2020
replaysSessionSampleRate: 0.1,
2121
replaysOnErrorSampleRate: 1.0,
2222
includeLocalVariables: true,

0 commit comments

Comments
 (0)