Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zilencer: Set the remote server as the user in Sentry.
Alex Vandiver4ef93de128ee
diff --git a/zilencer/auth.py b/zilencer/auth.pyindex 6766226e1c0..9136dc986af 100644--- a/zilencer/auth.py+++ b/zilencer/auth.py@@ -2,6 +2,7 @@ import loggingfrom functools import wrapsfrom typing import Any, Callable+import sentry_sdkfrom django.conf import settingsfrom django.http import HttpRequest, HttpResponsefrom django.urls import path@@ -96,6 +97,7 @@ def validate_remote_server(raise JsonableError(_("Invalid subdomain for push notifications bouncer"))RequestNotes.get_notes(request).remote_server = remote_serverprocess_client(request)+ sentry_sdk.set_user({"server": remote_server.uuid})return remote_server