add more sentry integrations
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-19 22:26:49 +02:00
parent e833d78891
commit 5427aeb39a

View File

@ -5,6 +5,7 @@ from flask_restful import Api
import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
from resources import *
from config import *
@ -30,7 +31,7 @@ if SENTRY_DSN:
)
sentry_sdk.init(
dsn=SENTRY_DSN,
integrations=[FlaskIntegration(), sentry_logging],
integrations=[FlaskIntegration(), sentry_logging, SqlalchemyIntegration()],
traces_sample_rate=1.0,
send_default_pii=True,
release=RELEASE_ID,