This commit is contained in:
Egor Matveev 2022-02-28 21:21:13 +03:00
parent 2b9c5ee654
commit c8882387e0

View File

@ -14,6 +14,9 @@ import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -163,3 +166,17 @@ CONSTS = {
"testing_status": "Testing",
"ok_status": "OK",
}
sentry_sdk.init(
dsn="https://bd56bba96dbe4017a792810a8be6cfc1@o1155463.ingest.sentry.io/6235928",
integrations=[DjangoIntegration()],
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
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
)