sentry
This commit is contained in:
parent
2b9c5ee654
commit
c8882387e0
@ -14,6 +14,9 @@ import os
|
|||||||
|
|
||||||
|
|
||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# 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__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
|
|
||||||
@ -163,3 +166,17 @@ CONSTS = {
|
|||||||
"testing_status": "Testing",
|
"testing_status": "Testing",
|
||||||
"ok_status": "OK",
|
"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
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user