mirror of https://github.com/zulip/zulip.git
sentry: Don't create spans for the longpoll or presence.
These will help Sentry skip span creation for these requests, which are background events and not part of the pageload time.
This commit is contained in:
parent
37c3cfb348
commit
8089cb70dd
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue