Merge pull request #357 from Monadical-SAS/reduce-transaction-sample-rate

Reduce transactions sent to sentry
This commit is contained in:
2024-06-03 14:59:17 +02:00
committed by GitHub

View File

@@ -45,7 +45,7 @@ if settings.SENTRY_DSN:
logger.error("Sentry is not installed, avoided")
else:
logger.info("Sentry enabled")
sentry_sdk.init(dsn=settings.SENTRY_DSN)
sentry_sdk.init(dsn=settings.SENTRY_DSN, traces_sample_rate=0.01)
else:
logger.info("Sentry disabled")