Sentry Redis integration enabled by default in production.

This commit is contained in:
vascop 2020-12-31 14:02:53 +01:00 committed by GitHub
parent 86a388b7a4
commit fcbe4f5f86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(