aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-06-06 12:49:50 +0200
committerGravatar Leon Sandøy <[email protected]>2020-06-06 12:49:50 +0200
commit93be87cea7cde7333042e2bb9529867723f567a7 (patch)
tree733ef7d3c7df116780b5d812677703d9ca97122e
parentMerge pull request #985 from ks129/rules-stats (diff)
Enable the 'redis' / 'aiohttp' Sentry integrations
This will provide breadcrumbs for these systems in all our Sentry events, if applicable. Closes #989.
-rw-r--r--bot/__main__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bot/__main__.py b/bot/__main__.py
index aa1d1aee8..4e0d4a111 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -3,7 +3,9 @@ import logging
import discord
import sentry_sdk
from discord.ext.commands import when_mentioned_or
+from sentry_sdk.integrations.aiohttp import AioHttpIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
+from sentry_sdk.integrations.redis import RedisIntegration
from bot import constants, patches
from bot.bot import Bot
@@ -15,7 +17,11 @@ sentry_logging = LoggingIntegration(
sentry_sdk.init(
dsn=constants.Bot.sentry_dsn,
- integrations=[sentry_logging]
+ integrations=[
+ sentry_logging,
+ AioHttpIntegration(),
+ RedisIntegration(),
+ ]
)
bot = Bot(