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