Skip to content

Instantly share code, notes, and snippets.

@essykings
Created June 21, 2022 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save essykings/5fb4630de1a789219b27f143d24ddaae to your computer and use it in GitHub Desktop.
Save essykings/5fb4630de1a789219b27f143d24ddaae to your computer and use it in GitHub Desktop.
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
sentry_sdk.init(
dsn="https://e42998f408384557b1ad3bf6cf28dee6@o1244444.ingest.sentry.io/6400929",
integrations=[DjangoIntegration()],
# 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,
# 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
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment