From fcbe4f5f86dc4015440fcf2fd9fb1847fdd44e6a Mon Sep 17 00:00:00 2001 From: vascop Date: Thu, 31 Dec 2020 14:02:53 +0100 Subject: [PATCH] Sentry Redis integration enabled by default in production. --- {{cookiecutter.project_slug}}/config/settings/production.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/config/settings/production.py b/{{cookiecutter.project_slug}}/config/settings/production.py index 340046f9..bd0acfbd 100644 --- a/{{cookiecutter.project_slug}}/config/settings/production.py +++ b/{{cookiecutter.project_slug}}/config/settings/production.py @@ -7,6 +7,7 @@ from sentry_sdk.integrations.logging import LoggingIntegration {%- if cookiecutter.use_celery == 'y' %} from sentry_sdk.integrations.celery import CeleryIntegration {% endif %} +from sentry_sdk.integrations.redis import RedisIntegration {% endif -%} from .base import * # noqa @@ -351,9 +352,9 @@ sentry_logging = LoggingIntegration( ) {%- if cookiecutter.use_celery == 'y' %} -integrations = [sentry_logging, DjangoIntegration(), CeleryIntegration()] +integrations = [sentry_logging, DjangoIntegration(), CeleryIntegration(), RedisIntegration()] {% else %} -integrations = [sentry_logging, DjangoIntegration()] +integrations = [sentry_logging, DjangoIntegration(), RedisIntegration()] {% endif -%} sentry_sdk.init(