From 52032d10e6868d6799d6e6428ffa3ba4832bfda6 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 11 Aug 2023 23:12:24 +0200 Subject: [PATCH] send performance entry for sentry --- divent/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/divent/bot.py b/divent/bot.py index 7d1a6da..c806084 100644 --- a/divent/bot.py +++ b/divent/bot.py @@ -35,7 +35,9 @@ if QUART_DEBUG: SENTRY_DSN = getenv("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") AUTHORIZATION_BASE_URL = f"{API_BASE_URL}/oauth2/authorize"