Skip to content
Snippets Groups Projects
Verified Commit 6c3ab3fa authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Enable Redis and Celery integration on Sentry

parent 74deefce
No related branches found
No related tags found
1 merge request!745Resolve "Integrate Sentry for performance and error tracing"
Pipeline #38099 failed
...@@ -859,6 +859,8 @@ SENTRY_ENABLED = _settings.get("health.sentry.enabled", False) ...@@ -859,6 +859,8 @@ SENTRY_ENABLED = _settings.get("health.sentry.enabled", False)
if SENTRY_ENABLED: if SENTRY_ENABLED:
import sentry_sdk import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.redis import RedisIntegration
from sentry_sdk.integrations.celery import CeleryIntegration
from aleksis.core import __version__ from aleksis.core import __version__
SENTRY_SETTINGS = { SENTRY_SETTINGS = {
...@@ -870,9 +872,11 @@ if SENTRY_ENABLED: ...@@ -870,9 +872,11 @@ if SENTRY_ENABLED:
"in_app_include": "aleksis", "in_app_include": "aleksis",
} }
sentry_sdk.init( sentry_sdk.init(
integrations=[DjangoIntegration( integrations=[
transaction_style="function_name", DjangoIntegration(transaction_style="function_name"),
)], RedisIntegration(),
CeleryIntegration(),
],
**SENTRY_SETTINGS **SENTRY_SETTINGS
) )
......
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