Add sentry_clientside_traces_sample_rate setting to gon
What does this MR do and why?
As part of #407169 (closed) in order to make our configuration available in sentry config
on the frontend (PoC in !114281 (closed)) we need to expose sentry_clientside_traces_sample_rate
in gon
.
Screenshots or screen recordings
N/A
How to set up and validate locally
- Make sure to
Feature.enable(:enable_new_sentry_clientside_integration)
- Open any page of your local
GDK
in the browser- Open the browser dev tools
- Check the value of
gon.sentry_clientside_traces_sample_rate
- Open
rails console
- Set a number to this setting
Gitlab::CurrentSettings.update(sentry_clientside_traces_sample_rate: 0.5)
- Set a number to this setting
- Back to the browser
- Refresh the page
- Check the value of
gon.sentry_clientside_traces_sample_rate
again - Make sure it's the new value you've set in
rails console
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Sheldon Led