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: Don't create spans for the longpoll or presence.

Alex Vandiver8089cb70dd63
diff --git a/web/src/sentry.ts b/web/src/sentry.ts
index 55604a89e27..51222f949a8 100644
--- a/web/src/sentry.ts
+++ b/web/src/sentry.ts
@@ -73,6 +73,10 @@ if (page_params.server_sentry_dsn) {
name: normalize_path(location.pathname, sentry_key === "www"),
};
},
+ shouldCreateSpanForRequest(url) {
+ const parsed = new URL(url, window.location.href);
+ return !["/json/events", "/json/users/me/presence"].includes(parsed.pathname);
+ },
}),
],
allowUrls: url_matches,