Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Add SqlalchemyIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 22, 2020
1 parent fc5d832 commit ab77a91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocdstoucan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import sentry_sdk
from django.utils.translation import gettext_lazy as _
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down Expand Up @@ -145,5 +146,5 @@
if os.getenv('SENTRY_DSN') is not None:
sentry_sdk.init(
dsn=os.getenv('SENTRY_DSN'),
integrations=[DjangoIntegration()]
integrations=[DjangoIntegration(), SqlalchemyIntegration()]
)

0 comments on commit ab77a91

Please sign in to comment.