From 760e89c310d9132688d182bd3b523e79207280b4 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sat, 19 Dec 2020 16:06:02 +0200 Subject: Add Redis and aiohttp integrations to Sentry --- bot/__main__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bot/__main__.py') 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__) -- cgit v1.2.3 From fe3ecaefc1b7491916bc87a6e608f143afbed2f3 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sat, 19 Dec 2020 19:19:05 +0200 Subject: Add release tag to Sentry SDK initialization --- bot/__main__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bot/__main__.py') diff --git a/bot/__main__.py b/bot/__main__.py index df0e30eb..ee7710e7 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -1,12 +1,12 @@ import logging import sentry_sdk +from sentry_sdk.integrations.aiohttp import AioHttpIntegration 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 +from bot.constants import Client, GIT_SHA, STAFF_ROLES, WHITELISTED_CHANNELS from bot.utils.decorators import in_channel_check from bot.utils.extensions import walk_extensions @@ -22,7 +22,8 @@ sentry_sdk.init( sentry_logging, RedisIntegration(), AioHttpIntegration() - ] + ], + release=f"pydis-sir-lancebot@{GIT_SHA}" ) log = logging.getLogger(__name__) -- cgit v1.2.3 From 826ff04368756fcf0b6d5c41bef40e8f193281bf Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sat, 19 Dec 2020 19:26:24 +0200 Subject: Remove aiohttp integration from Sentry --- bot/__main__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bot/__main__.py') diff --git a/bot/__main__.py b/bot/__main__.py index ee7710e7..da0ff439 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -1,7 +1,6 @@ import logging import sentry_sdk -from sentry_sdk.integrations.aiohttp import AioHttpIntegration from sentry_sdk.integrations.logging import LoggingIntegration from sentry_sdk.integrations.redis import RedisIntegration @@ -20,8 +19,7 @@ sentry_sdk.init( dsn=Client.sentry_dsn, integrations=[ sentry_logging, - RedisIntegration(), - AioHttpIntegration() + RedisIntegration() ], release=f"pydis-sir-lancebot@{GIT_SHA}" ) -- cgit v1.2.3 From 9392a2af65021db56bafa462da0b78121ca428d2 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sat, 19 Dec 2020 19:26:59 +0200 Subject: Use sir-lancebot instead pydis-sir-lancebot for release name Co-authored-by: Joe Banks --- bot/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/__main__.py') diff --git a/bot/__main__.py b/bot/__main__.py index da0ff439..e9b14a53 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -21,7 +21,7 @@ sentry_sdk.init( sentry_logging, RedisIntegration() ], - release=f"pydis-sir-lancebot@{GIT_SHA}" + release=f"sir-lancebot@{GIT_SHA}" ) log = logging.getLogger(__name__) -- cgit v1.2.3