We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cd8a99 commit 71eccf9Copy full SHA for 71eccf9
1 file changed
utils/sentry.py
@@ -4,6 +4,7 @@
4
import sentry_sdk
5
6
from sentry_sdk.integrations.logging import LoggingIntegration
7
+from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
8
9
10
ENABLE_SENTRY = os.getenv("ENABLE_SENTRY") == "1"
@@ -14,10 +15,13 @@
14
15
enable_logs=True,
16
send_default_pii=False,
17
traces_sample_rate=1.0,
- integrations=[LoggingIntegration(
18
- level=logging.INFO,
19
- event_level=logging.ERROR,
20
- )],
+ integrations=[
+ LoggingIntegration(
+ level=logging.INFO,
21
+ event_level=logging.ERROR,
22
+ ),
23
+ SqlalchemyIntegration(),
24
+ ],
25
)
26
27
0 commit comments