Skip to content

Add version to sentry events

What does this MR do and why?

This change publishes the current version of GitLab along with events sent to Sentry.

Currently both revision and release show the same sha information, this change removes the duplication and sets release as the proper version of Sentry.

The legacy integration of Sentry that still currently enabled by default is not affected, so no changelog is added.

Screenshots or screen recordings

We can see the version is added to the gon object for logged in users:

Screenshot_2023-06-02_at_11.59.12

How to set up and validate locally

There is no easy way to validate locally, I trust our tests already cover this change correctly.

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 #35183 (closed)

Edited by Miguel Rincon

Merge request reports