Skip to content

Upgrade sentry browser SDK to 7.66.0

Miguel Rincon requested to merge 339332-upgrade-sentry-version into master

What does this MR do and why?

Depends on !130938 (merged)

Upgrade sentry browser SDK to 7.66.0

MRs in this change chain
Enable Sentry module treeshaking (!130677 - merged)
Upgrade sentry browser SDK to 7.66.0 (!130678 - merged) your are here
Adds Sentry browser performance tracing (!130713 - merged)

Screenshots or screen recordings

NA

How to set up and validate locally

!130938 (merged) addressed the first step! I made that MR a parent of this one.

Reviewing this change requires reinstalling the Sentry dependencies

After checking out this branch, you'll want to rebuild the dependency tree that sentry uses, on your gdk the following command will work:

rm -rf node_modules/ && yarn install && yarn clean && gdk restart webpack

Note: If any of the reviewers finds a cleaner way to reinstall, I'll be happy to update this command 🙇

2. Confirm the installation

One easy way to validate in GDK is to enable Sentry and check it gets configured in the browser console:

  1. Enable the feature flag: enable_new_sentry_clientside_integration, to enable the new integration.
  2. Enabled the feature flag configure_sentry_in_application_settings to enable the UI form in admin
  3. Visit http://gdk.test:3000/admin/application_settings/metrics_and_profiling#js-sentry-settings
  4. Fill the form with some dummy data, ensuring "Enable Sentry error tracking" is turned on.
  5. Print the following values in your console:
_Sentry.SDK_VERSION // should be "7.66.0"

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #339332 (closed)

Edited by Miguel Rincon

Merge request reports