Skip to content

Commit

Permalink
Add Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Aug 21, 2021
1 parent 5e10320 commit c38865f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/ARte/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@
print(f"ALLOWED_HOSTS:{ALLOWED_HOSTS}")
# Application definition

import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

sentry_sdk.init(
dsn="https://081a2c3476b24a9f9a51d74bde539b62@o968990.ingest.sentry.io/5920229",
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
)

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
Expand Down
3 changes: 2 additions & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ gevent
django-extensions
factory_boy
boto3~=1.17.26
django-storages~=1.11.1
django-storages~=1.11.1
sentry-sdk~=1.3.1

0 comments on commit c38865f

Please sign in to comment.