From cbbc4f97f2cd8db239af2f0743c027e955d4a061 Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Thu, 6 Feb 2020 15:11:38 +0100
Subject: [PATCH] Add CeleryIntegration for Sentry.

---
 opentech/settings/production.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/opentech/settings/production.py b/opentech/settings/production.py
index d73af0fda..1c4a98095 100644
--- a/opentech/settings/production.py
+++ b/opentech/settings/production.py
@@ -27,10 +27,11 @@ if 'MAILGUN_API_KEY' in env:
 if 'SENTRY_DSN' in env:
     import sentry_sdk
     from sentry_sdk.integrations.django import DjangoIntegration
+    from sentry_sdk.integrations.celery import CeleryIntegration
     sentry_sdk.init(
         dsn=env['SENTRY_DSN'],
         environment=env.get('SENTRY_ENVIRONMENT', None),
-        integrations=[DjangoIntegration()]
+        integrations=[DjangoIntegration(), CeleryIntegration()]
     )
 
 # Heroku configuration.
-- 
GitLab