From 8e898d301c8b49e6d385c3a2d6832947faaf8424 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 10 Sep 2019 13:24:38 +0200 Subject: [PATCH] Install aiohttp and sqlalchemy integration --- royalnet/bots/generic.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/royalnet/bots/generic.py b/royalnet/bots/generic.py index 4380bc43..9e94801f 100644 --- a/royalnet/bots/generic.py +++ b/royalnet/bots/generic.py @@ -3,6 +3,8 @@ import typing import asyncio import logging import sentry_sdk +from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration +from sentry_sdk.integrations.aiohttp import AioHttpIntegration from ..utils import * from ..network import * from ..database import * @@ -134,7 +136,7 @@ class GenericBot: self.loop = loop if sentry_dsn: log.debug("Sentry integration enabled") - self.sentry = sentry_sdk.init(sentry_dsn) + self.sentry = sentry_sdk.init(sentry_dsn, integrations=[AioHttpIntegration(), SqlalchemyIntegration()]) else: log.debug("Sentry integration disabled") try: