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 /spec/frontend | |
parent | c70fec25f88e1f1866c6b3d91de8587bdad59391 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/sentry/init_sentry_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/frontend/sentry/init_sentry_spec.js b/spec/frontend/sentry/init_sentry_spec.js index 8cfbcc1cfca..e31068b935b 100644 --- a/spec/frontend/sentry/init_sentry_spec.js +++ b/spec/frontend/sentry/init_sentry_spec.js @@ -22,6 +22,7 @@ const mockVersion = '1.0.0'; const mockRevision = '00112233'; const mockFeatureCategory = 'my_feature_category'; const mockPage = 'index:page'; +const mockSentryClientsideTracesSampleRate = 0.1; jest.mock('sentrybrowser', () => { return { @@ -51,6 +52,7 @@ describe('SentryConfig', () => { version: mockVersion, revision: mockRevision, feature_category: mockFeatureCategory, + sentry_clientside_traces_sample_rate: mockSentryClientsideTracesSampleRate, }; document.body.dataset.page = mockPage; @@ -89,6 +91,8 @@ describe('SentryConfig', () => { release: mockVersion, allowUrls: [mockGitlabUrl, 'webpack-internal://'], environment: mockEnvironment, + tracesSampleRate: mockSentryClientsideTracesSampleRate, + tracePropagationTargets: [/^\//], transport: makeFetchTransport, stackParser: defaultStackParser, |