Add celery integration to sentry tracking

This commit is contained in:
Georg Krause 2022-08-14 16:27:31 +02:00
parent c5d170a9c0
commit 14591adaea
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 2 additions and 1 deletions

View File

@ -22,10 +22,11 @@ LOGLEVEL = env("LOGLEVEL", default="info").upper()
if env("FUNKWHALE_SENTRY_DSN", default=None) is not None: if env("FUNKWHALE_SENTRY_DSN", default=None) is not None:
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
sentry_sdk.init( sentry_sdk.init(
dsn=env("FUNKWHALE_SENTRY_DSN"), dsn=env("FUNKWHALE_SENTRY_DSN"),
integrations=[DjangoIntegration()], integrations=[DjangoIntegration(), CeleryIntegration()],
traces_sample_rate=env("FUNKWHALE_SENTRY_SR", default=0.25), traces_sample_rate=env("FUNKWHALE_SENTRY_SR", default=0.25),
send_default_pii=False, send_default_pii=False,
environment="api", environment="api",