send performance entry for sentry
All checks were successful
divent / lint (push) Successful in 2m6s
divent / docker (push) Successful in 2m13s
divent / pypi (push) Has been skipped

This commit is contained in:
Michel Roux 2023-08-11 23:12:24 +02:00
parent b498a18776
commit 52032d10e6

View File

@ -35,7 +35,9 @@ if QUART_DEBUG:
SENTRY_DSN = getenv("SENTRY_DSN") SENTRY_DSN = getenv("SENTRY_DSN")
if SENTRY_DSN: if SENTRY_DSN:
sentry_sdk.init(SENTRY_DSN, integrations=[QuartIntegration()]) sentry_sdk.init(
dsn=SENTRY_DSN, integrations=[QuartIntegration()], traces_sample_rate=1.0
)
API_BASE_URL = getenv("API_BASE_URL", "https://discordapp.com/api") API_BASE_URL = getenv("API_BASE_URL", "https://discordapp.com/api")
AUTHORIZATION_BASE_URL = f"{API_BASE_URL}/oauth2/authorize" AUTHORIZATION_BASE_URL = f"{API_BASE_URL}/oauth2/authorize"