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: Tag JS reports with the user's role.

Alex Vandiverbfdc057e3ad2
diff --git a/web/src/sentry.ts b/web/src/sentry.ts
index 22977e5a7fa..8e7a2457f88 100644
--- a/web/src/sentry.ts
+++ b/web/src/sentry.ts
@@ -60,6 +60,7 @@ if (page_params.server_sentry_dsn) {
initialScope: {
tags: {
realm: sentry_key,
+ user_role: user_info.role ?? "Browser",
server_version: page_params.zulip_version,
},
user: user_info,