Skip to content

Commit 6438ca0

Browse files
committed
fix: add DjangoIntegration to Sentry settings
NS-20.
1 parent e2e3399 commit 6438ca0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

notification_service/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import environ
66
import sentry_sdk
77
from django.utils.translation import gettext_lazy as _
8+
from sentry_sdk.integrations.django import DjangoIntegration
89

910
checkout_dir = environ.Path(__file__) - 2
1011
assert os.path.exists(checkout_dir("manage.py"))
@@ -80,6 +81,7 @@
8081
environment=env("SENTRY_ENVIRONMENT"),
8182
enable_tracing=env.bool("SENTRY_ENABLE_TRACING"),
8283
traces_sample_rate=env.float("SENTRY_TRACES_SAMPLE_RATE"),
84+
integrations=[DjangoIntegration()],
8385
)
8486

8587
MEDIA_ROOT = env("MEDIA_ROOT")

0 commit comments

Comments
 (0)