SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 292f3644 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add Celery integration to Sentry

parent 5a23d28d
No related branches found
No related tags found
No related merge requests found
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
from .base import * from .base import *
...@@ -67,7 +68,7 @@ REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = ('rest_framework.renderers.JSONRend ...@@ -67,7 +68,7 @@ REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = ('rest_framework.renderers.JSONRend
# Sentry # Sentry
sentry_sdk.init( sentry_sdk.init(
dsn=get_secret('SENTRY_DSN'), dsn=get_secret('SENTRY_DSN'),
integrations=[DjangoIntegration()] integrations=[DjangoIntegration(), CeleryIntegration()]
) )
CSP_REPORT_URI = get_secret('CSP_SENTRY') CSP_REPORT_URI = get_secret('CSP_SENTRY')
CSP_REPORT_ONLY = False CSP_REPORT_ONLY = False
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