Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion http_service/bugbug_http/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import sentry_sdk
from sentry_sdk.integrations.logging import LoggingIntegration
from sentry_sdk.integrations.redis import RedisIntegration

from bugbug import get_bugbug_version

Expand All @@ -23,6 +24,10 @@ def setup_sentry(dsn, integrations=None):
)
sentry_sdk.init(
dsn=dsn,
integrations=[logging_integration] + integrations,
integrations=[logging_integration, RedisIntegration()] + integrations,
# Sentry would otherwise enable the integrations of all the supported libraries installed,
# importing them: the AI ones (langchain, openai, anthropic...) the service doesn't use add
# ~250 MB to each process.
auto_enabling_integrations=False,
release=get_bugbug_version(),
)