sentry: Add frontend event monitoring.

Zulip already has integrations for server-side Sentry integration;
however, it has historically used the Zulip-specific `blueslip`
library for monitoring browser-side errors.  However, the latter sends
errors to email, as well optionally to an internal `#errors` stream.
While this is sufficient for low volumes of users, and useful in that
it does not rely on outside services, at higher volumes it is very
difficult to do any analysis or filtering of the errors.  Client-side
errors are exceptionally noisy, with many false positives due to
browser extensions or similar, so determining real real errors from a
stream of un-grouped emails or messages in a stream is quite
difficult.

Add a client-side Javascript sentry integration.  To provide useful
backtraces, this requires extending the pre-deploy hooks to upload the
source-maps to Sentry.  Additional keys are added to the non-public
API of `page_params` to control the DSN, realm identifier, and sample
rates.
This commit is contained in:
Alex Vandiver
2023-02-13 19:50:57 +00:00
committed by Tim Abbott
parent fc40d74cda
commit 8f8a9f6f04
13 changed files with 257 additions and 11 deletions

View File

@@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 167
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
PROVISION_VERSION = (224, 0)
PROVISION_VERSION = (224, 1)