add sentry integration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-12-30 03:44:57 +01:00
parent d3205e987f
commit 270988036d
2 changed files with 13 additions and 0 deletions

View File

@ -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__)))

View File

@ -22,3 +22,4 @@ requests-oauthlib==1.2.0
six==1.12.0
sqlparse==0.3.0
urllib3==1.25.3
sentry-sdk