Skip to content

Commit

Permalink
feat: sentry monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
davisilvarafacho committed Oct 30, 2024
1 parent bafe8db commit 57fe843
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@
MANAGERS = ADMINS


if IN_PRODUCTION:
import sentry_sdk

sentry_sdk.init(
dsn=get_env_var("SENTRY_DSN"),
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
)


DJANGO_APPS = [
"django.contrib.admin",
"django.contrib.auth",
Expand Down

0 comments on commit 57fe843

Please sign in to comment.