Adjust Sentry sample rates for production settings

This commit is contained in:
Enno Gelhaus 2025-09-17 17:54:20 +02:00 committed by GitHub
parent 9c5785b5cb
commit d987b1c222
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -27,11 +27,11 @@ export const initializeSentry = (appName: string, allowLogs = false) => {
nodeProfilingIntegration(),
Sentry.consoleLoggingIntegration({ levels: ['log', 'error', 'warn'] }),
],
tracesSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.3,
tracesSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.25,
enableLogs: true,
// Profiling
profileSessionSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.3,
profileSessionSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.15,
profileLifecycle: 'trace',
});
} catch (err) {