diff --git a/geogame/settings.py b/geogame/settings.py index 7716d3d..b8f4905 100644 --- a/geogame/settings.py +++ b/geogame/settings.py @@ -11,6 +11,18 @@ https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os +import sentry_sdk +from sentry_sdk.integrations.django import DjangoIntegration + +sentry_sdk.init( + dsn="https://c5a7542e02574e20951223b076a1240f@sentry.kmlabz.com/27", + integrations=[DjangoIntegration()], + traces_sample_rate=1.0, + + # If you wish to associate users to errors (assuming you are using + # django.contrib.auth) you may enable sending PII data. + send_default_pii=True +) # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) diff --git a/requirements.txt b/requirements.txt index 0125cfe..88eea33 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,3 +22,4 @@ requests-oauthlib==1.2.0 six==1.12.0 sqlparse==0.3.0 urllib3==1.25.3 +sentry-sdk