* Disable Sentry for debug environment

This commit is contained in:
Phil Zhitnikov 2023-11-09 17:19:18 +04:00
parent 1a8cde0485
commit 08d58a6dc2

View File

@ -201,13 +201,14 @@ COMMISSION_OVER_150K = 1.1
# Logging
SENTRY_DSN = "***REMOVED***"
sentry_sdk.init(
dsn=SENTRY_DSN,
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
traces_sample_rate=1.0,
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,
)
if not DEBUG:
sentry_sdk.init(
dsn=SENTRY_DSN,
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
traces_sample_rate=1.0,
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,
)