From ee63555dd8ca0b4328258b089218fd6deb8203ea Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Wed, 29 Apr 2020 12:20:22 +0200 Subject: [PATCH] sentry integration --- requirements.in | 3 ++- settings.py | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/requirements.in b/requirements.in index d102675..0578785 100644 --- a/requirements.in +++ b/requirements.in @@ -20,4 +20,5 @@ mailchimp3==2.1.0 django-image-cropping==1.2.0 django-anymail[mailgun]==1.4 django-admin-view-permission==1.9 -gunicorn==19.9.0 \ No newline at end of file +gunicorn==19.9.0 +sentry-sdk==0.14.3 \ No newline at end of file diff --git a/settings.py b/settings.py index c0c6107..1aef92a 100644 --- a/settings.py +++ b/settings.py @@ -1,6 +1,17 @@ # -*- coding: utf-8 -*- import copy import os +import sentry_sdk +from sentry_sdk.integrations.django import DjangoIntegration + +sentry_sdk.init( + dsn="https://460e310d034c49a794941e087c4fcc6e@o74423.ingest.sentry.io/1196285", + integrations=[DjangoIntegration()], + + # 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_ADDONS = [ # # Warning: text inside the INSTALLED_ADDONS tags is auto-generated. Manual changes will be overwritten.