This commit is contained in:
Diego Calvo
2021-06-09 09:51:12 +02:00
parent 2ecab694b9
commit ddea1e0947
2 changed files with 28 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
from back_latienda.settings.base import *
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from datetime import timedelta
@@ -7,6 +9,27 @@ DEBUG = False
ALLOWED_HOSTS = ['*']
# Sentry
sentry_sdk.init(
dsn=os.getenv('SENTRY_DSN'),
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,
# By default the SDK will try to use the SENTRY_RELEASE
# environment variable, or infer a git commit
# SHA as release, however you may want to set
# something more human-readable.
# release="myapp@1.0.0",
)
# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases