Skip to content
Snippets Groups Projects
Commit cbbc4f97 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Add CeleryIntegration for Sentry.

parent 09950dbc
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