Skip to content

Commit

Permalink
chore: bump sentry version and add sentry DSN to django settings (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech authored Sep 13, 2023
1 parent 9bbf187 commit e7f25fc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions housewatch/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,28 @@

from django.core.exceptions import ImproperlyConfigured
from kombu import Exchange, Queue
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

from housewatch.utils import str_to_bool


sentry_sdk.init(
dsn="https://6a05afd8bf4e2d54c81833ca1ff98cca@o607503.ingest.sentry.io/4505874503237633",
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,
# 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,
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,
)

# TODO: Figure out why things dont work on cloud without debug
DEBUG = os.getenv("DEBUG", "false").lower() in ["true", "1"]

Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pytz-deprecation-shim==0.1.0.post0
PyYAML==6.0
redis==4.5.3
requests==2.31.0
sentry-sdk==1.9.8
six==1.16.0
sqlparse==0.4.3
structlog==22.3.0
Expand All @@ -55,3 +54,4 @@ vine==5.0.0
wcwidth==0.2.6
whitenoise==5.2.0
yarl==1.9.2
sentry-sdk==1.31.0
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ requests==2.31.0
# via
# -r requirements.in
# openai
sentry-sdk==1.9.8
sentry-sdk==1.31.0
# via -r requirements.in
six==1.16.0
# via
Expand Down

0 comments on commit e7f25fc

Please sign in to comment.