diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-15 18:15:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-15 18:15:58 +0300 |
commit | f357b1fa2f6a1a204f1ab9070e8a64d717c8960c (patch) | |
tree | 067cd32e690d992f1b31862ceb3dce7456fdf8cc /app/assets/javascripts/sentry | |
parent | c70fec25f88e1f1866c6b3d91de8587bdad59391 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/sentry')
-rw-r--r-- | app/assets/javascripts/sentry/init_sentry.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/sentry/init_sentry.js b/app/assets/javascripts/sentry/init_sentry.js index afc143ff351..dbd12dc36ce 100644 --- a/app/assets/javascripts/sentry/init_sentry.js +++ b/app/assets/javascripts/sentry/init_sentry.js @@ -29,6 +29,10 @@ const initSentry = () => { : [gon.gitlab_url, 'webpack-internal://'], environment: gon.sentry_environment, + // Browser tracing configuration + tracePropagationTargets: [/^\//], // only trace internal requests + tracesSampleRate: gon.sentry_clientside_traces_sample_rate || 0, + // This configuration imitates the Sentry.init() default configuration // https://github.com/getsentry/sentry-javascript/blob/7.66.0/MIGRATION.md#explicit-client-options transport: makeFetchTransport, |