Skip to content

Commit

Permalink
Add sentry environment
Browse files Browse the repository at this point in the history
  • Loading branch information
heykarimoff committed Oct 11, 2024
1 parent e53faf9 commit e2431fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions template/src/project_name/main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,14 @@
# Sentry
sentry_sdk.init(
dsn=env("SENTRY_DSN", default=None),
environment=env("SENTRY_ENV", default="production"),
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=env.float("SENTRY_TRACES_SAMPLE_RATE", default=1.0),
traces_sample_rate=env.float("SENTRY_TRACES_SAMPLE_RATE", default=0.0),
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=env.float("SENTRY_PROFILES_SAMPLE_RATE", default=1.0),
# It's recommended to adjust this value in production.
profiles_sample_rate=env.float("SENTRY_PROFILES_SAMPLE_RATE", default=0.0),
integrations=[
DjangoIntegration(),
],
Expand Down

0 comments on commit e2431fb

Please sign in to comment.