Skip to content

Commit bc5bbd1

Browse files
authored
Merge pull request #193 from devinmatte/sentry
Adding sqlalchemy plugin to sentry
2 parents 64ef18c + f466529 commit bc5bbd1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packet/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import sentry_sdk
1919
from sentry_sdk.integrations.flask import FlaskIntegration
20+
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
2021

2122
app = Flask(__name__)
2223
gzip = Gzip(app)
@@ -66,7 +67,7 @@
6667
# Sentry
6768
sentry_sdk.init(
6869
dsn=app.config['SENTRY_DSN'],
69-
integrations=[FlaskIntegration()]
70+
integrations=[FlaskIntegration(), SqlalchemyIntegration()]
7071
)
7172

7273
app.logger.info('OIDCAuth and LDAP configured')

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ gunicorn~=19.7.1
1010
csh_ldap~=2.1.0
1111
onesignal-sdk~=1.0.0
1212
pylint-quotes~=0.2.1
13-
sentry-sdk[flask]==0.13.1
13+
sentry-sdk==0.13.1

0 commit comments

Comments
 (0)