Skip to content
Snippets Groups Projects
Unverified Commit 7b55a058 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #1787 from OpenTechFund/enhancement/add_sentry_celeryintegration

Add CeleryIntegration for Sentry.
parents 200b662f cbbc4f97
No related branches found
No related tags found
No related merge requests found
...@@ -27,10 +27,11 @@ if 'MAILGUN_API_KEY' in env: ...@@ -27,10 +27,11 @@ if 'MAILGUN_API_KEY' in env:
if 'SENTRY_DSN' in env: if 'SENTRY_DSN' in env:
import sentry_sdk import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.celery import CeleryIntegration
sentry_sdk.init( sentry_sdk.init(
dsn=env['SENTRY_DSN'], dsn=env['SENTRY_DSN'],
environment=env.get('SENTRY_ENVIRONMENT', None), environment=env.get('SENTRY_ENVIRONMENT', None),
integrations=[DjangoIntegration()] integrations=[DjangoIntegration(), CeleryIntegration()]
) )
# Heroku configuration. # Heroku configuration.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment