diff options
| author | 2020-12-19 16:06:02 +0200 | |
|---|---|---|
| committer | 2020-12-19 16:06:02 +0200 | |
| commit | 760e89c310d9132688d182bd3b523e79207280b4 (patch) | |
| tree | 4f88a4d56e6a3742bdb15171de14155457a067b5 /bot | |
| parent | Bump Sentry SDK from 0.14 to 0.19 (diff) | |
Add Redis and aiohttp integrations to Sentry
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/__main__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index cd2d43a9..df0e30eb 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -2,6 +2,8 @@ import logging import sentry_sdk from sentry_sdk.integrations.logging import LoggingIntegration +from sentry_sdk.integrations.redis import RedisIntegration +from sentry_sdk.integrations.aiohttp import AioHttpIntegration from bot.bot import bot from bot.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS @@ -16,7 +18,11 @@ sentry_logging = LoggingIntegration( sentry_sdk.init( dsn=Client.sentry_dsn, - integrations=[sentry_logging] + integrations=[ + sentry_logging, + RedisIntegration(), + AioHttpIntegration() + ] ) log = logging.getLogger(__name__) |