mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
sentry: Provide ZULIP_VERSION as "release".
This commit is contained in:
committed by
Tim Abbott
parent
153f16ee6a
commit
2e97d2b9f7
@@ -7,6 +7,8 @@ from sentry_sdk.integrations.redis import RedisIntegration
|
||||
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||
from sentry_sdk.utils import capture_internal_exceptions
|
||||
|
||||
from version import ZULIP_VERSION
|
||||
|
||||
from .config import PRODUCTION
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@@ -33,6 +35,7 @@ def setup_sentry(dsn: Optional[str], *integrations: Integration) -> None:
|
||||
sentry_sdk.init(
|
||||
dsn=dsn,
|
||||
environment="production" if PRODUCTION else "development",
|
||||
release=ZULIP_VERSION,
|
||||
integrations=[
|
||||
DjangoIntegration(),
|
||||
RedisIntegration(),
|
||||
|
||||
Reference in New Issue
Block a user