diff --git a/backend/main.py b/backend/main.py index 9172f6e62..8735fe072 100644 --- a/backend/main.py +++ b/backend/main.py @@ -44,6 +44,7 @@ if sentry_dsn: dsn=sentry_dsn, sample_rate=0.1, enable_tracing=True, + traces_sample_rate=0.1, integrations=[ StarletteIntegration(transaction_style="endpoint"), FastApiIntegration(transaction_style="endpoint"), diff --git a/frontend/sentry.client.config.ts b/frontend/sentry.client.config.ts index c322e02da..19e970209 100644 --- a/frontend/sentry.client.config.ts +++ b/frontend/sentry.client.config.ts @@ -14,6 +14,7 @@ if (SENTRY_DSN) { // Adjust this value in production, or use tracesSampler for greater control sampleRate: 0.1, + tracesSampleRate: 0.1, // Setting this option to true will print useful information to the console while you're setting up Sentry. debug: false, @@ -35,4 +36,4 @@ if (SENTRY_DSN) { }); } else { console.log("Sentry is not initialized as SENTRY_DSN is not set"); -} \ No newline at end of file +}