Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

sentry: Provide ZULIP_VERSION as "release".

Alex Vandiver2e97d2b9f74b
diff --git a/zproject/sentry.py b/zproject/sentry.py
index 45de6a326d8..21b00dd44b4 100644
--- a/zproject/sentry.py
+++ b/zproject/sentry.py
@@ -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(),