Skip to content

Commit

Permalink
Merge pull request #101 from hermanTenuki/add-sentry
Browse files Browse the repository at this point in the history
Added sentry
  • Loading branch information
hermanTenuki authored Jan 15, 2022
2 parents 918e66e + 848ea8f commit 16d92e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from distutils.util import strtobool
from pathlib import Path

import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

EASY_RUN_MODE = False # Variable for fast project start without dealing with environment variables
if EASY_RUN_MODE:
os.environ['DEBUG'] = 'True'
Expand Down Expand Up @@ -223,3 +226,10 @@ def clear_temporary_images_folder():

if DEBUG or IN_TESTING:
CACHES['default'] = CACHE_LOCMEM

sentry_sdk.init(
dsn=os.getenv('SENTRY_DSN', ''),
integrations=[DjangoIntegration()],
traces_sample_rate=1.0,
send_default_pii=False
)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pyflakes==2.3.1
python-memcached==1.59
pytz==2020.1
requests==2.24.0
sentry-sdk==1.5.2
six==1.15.0
sqlparse==0.4.2
toml==0.10.2
Expand Down

0 comments on commit 16d92e8

Please sign in to comment.