From 6eed0b577999c75919849564acbb816878ae94f6 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Thu, 6 Feb 2025 17:04:14 +0100 Subject: [PATCH 1/4] test(browser): Avoid using `example.com` for browser-integration-tests Mostly we already add a route for this anyhow, but it can be confusing. So let's just use a proper non-existing URL there to ensure we notice issues earlier. --- .../xhr/onreadystatechange/subject.js | 2 +- .../xhr/onreadystatechange/test.ts | 2 +- .../suites/replay/requests/subject.js | 4 ++-- .../suites/replay/requests/test.ts | 8 +++---- .../suites/replay/slowClick/template.html | 2 +- .../replay/slowClick/windowOpen/test.ts | 9 +------- .../http-timings/subject.js | 2 +- .../http-timings/test.ts | 4 ++-- .../template.html | 2 +- .../template.html | 2 +- .../long-animation-frame-enabled/test.ts | 8 +++---- .../template.html | 2 +- .../template.html | 2 +- .../test.ts | 8 +++---- .../template.html | 1 - .../long-tasks-before-navigation/test.ts | 2 ++ .../long-tasks-disabled/template.html | 2 +- .../long-tasks-enabled/template.html | 2 +- .../template.html | 2 +- .../customTargets/init.js | 2 +- .../customTargets/subject.js | 2 +- .../customTargets/test.ts | 2 +- .../defaultTargetsNoMatch/subject.js | 2 +- .../defaultTargetsNoMatch/test.ts | 2 +- .../tracing/dsc-txn-name-update/init.js | 2 +- .../tracing/dsc-txn-name-update/subject.js | 2 +- .../tracing/dsc-txn-name-update/test.ts | 10 ++++++++- .../metrics/handlers-lcp/template.html | 2 +- .../pageload-resource-spans/template.html | 6 ++--- .../metrics/pageload-resource-spans/test.ts | 22 +++++++++---------- .../metrics/web-vitals-lcp/template.html | 2 +- .../tracing/metrics/web-vitals/template.html | 2 +- .../tracing/request/fetch-no-tracing/init.js | 2 +- .../request/fetch-no-tracing/subject.js | 6 ++--- .../tracing/request/fetch-no-tracing/test.ts | 2 +- .../request/fetch-tracing-unsampled/init.js | 2 +- .../fetch-tracing-unsampled/subject.js | 6 ++--- .../request/fetch-tracing-unsampled/test.ts | 2 +- .../fetch-tracing-without-performance/init.js | 2 +- .../subject.js | 6 ++--- .../fetch-tracing-without-performance/test.ts | 2 +- .../request/fetch-with-request/init.js | 2 +- .../request/fetch-with-request/subject.js | 2 +- .../request/fetch-with-request/test.ts | 2 +- .../suites/tracing/request/fetch/subject.js | 6 ++--- .../suites/tracing/request/fetch/test.ts | 14 ++++++------ .../suites/tracing/request/init.js | 2 +- .../tracing/request/xhr-no-tracing/init.js | 2 +- .../tracing/request/xhr-no-tracing/subject.js | 6 ++--- .../tracing/request/xhr-no-tracing/test.ts | 2 +- .../request/xhr-tracing-unsampled/init.js | 2 +- .../request/xhr-tracing-unsampled/subject.js | 6 ++--- .../request/xhr-tracing-unsampled/test.ts | 2 +- .../xhr-tracing-without-performance/init.js | 2 +- .../subject.js | 6 ++--- .../xhr-tracing-without-performance/test.ts | 2 +- .../suites/tracing/request/xhr/subject.js | 6 ++--- .../suites/tracing/request/xhr/test.ts | 12 +++++----- .../suites/tracing/trace-lifetime/init.js | 2 +- .../tracing/trace-lifetime/navigation/test.ts | 8 +++---- .../trace-lifetime/pageload-meta/subject.js | 4 ++-- .../trace-lifetime/pageload-meta/test.ts | 8 +++---- .../tracing/trace-lifetime/pageload/test.ts | 16 +++++++------- .../trace-lifetime/startNewTrace/subject.js | 4 ++-- .../trace-lifetime/startNewTrace/test.ts | 2 +- .../suites/tracing/trace-lifetime/subject.js | 6 ++--- .../trace-header-merging/init.js | 2 +- .../trace-header-merging/subject.js | 12 +++++----- .../trace-header-merging/test.ts | 6 ++--- .../tracing-without-performance/init.js | 2 +- .../tracing-without-performance/test.ts | 12 +++++----- .../utils/replayEventTemplates.ts | 4 ++-- 72 files changed, 160 insertions(+), 158 deletions(-) diff --git a/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/subject.js b/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/subject.js index a51740976b6a..9a9d41bf7e34 100644 --- a/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/subject.js +++ b/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/subject.js @@ -1,6 +1,6 @@ window.calls = {}; const xhr = new XMLHttpRequest(); -xhr.open('GET', 'http://example.com'); +xhr.open('GET', 'http://sentry-test-site.io'); xhr.onreadystatechange = function wat() { window.calls[xhr.readyState] = window.calls[xhr.readyState] ? window.calls[xhr.readyState] + 1 : 1; }; diff --git a/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/test.ts b/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/test.ts index f9b1816c6f2d..9f0b53924aed 100644 --- a/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/test.ts +++ b/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/test.ts @@ -7,7 +7,7 @@ sentryTest( async ({ getLocalTestUrl, page }) => { const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://example.com/', route => { + await page.route('http://sentry-test-site.io/', route => { return route.fulfill({ status: 200, contentType: 'application/json', diff --git a/dev-packages/browser-integration-tests/suites/replay/requests/subject.js b/dev-packages/browser-integration-tests/suites/replay/requests/subject.js index a58f304fc687..625a150b0c3e 100644 --- a/dev-packages/browser-integration-tests/suites/replay/requests/subject.js +++ b/dev-packages/browser-integration-tests/suites/replay/requests/subject.js @@ -6,11 +6,11 @@ document.getElementById('go-background').addEventListener('click', () => { }); document.getElementById('fetch').addEventListener('click', () => { - fetch('https://example.com', { method: 'POST', body: 'foo' }); + fetch('https://sentry-test-site.io', { method: 'POST', body: 'foo' }); }); document.getElementById('xhr').addEventListener('click', () => { const xhr = new XMLHttpRequest(); - xhr.open('GET', 'https://example.com'); + xhr.open('GET', 'https://sentry-test-site.io'); xhr.send(); }); diff --git a/dev-packages/browser-integration-tests/suites/replay/requests/test.ts b/dev-packages/browser-integration-tests/suites/replay/requests/test.ts index efb344382b69..bfca9528ba81 100644 --- a/dev-packages/browser-integration-tests/suites/replay/requests/test.ts +++ b/dev-packages/browser-integration-tests/suites/replay/requests/test.ts @@ -10,7 +10,7 @@ sentryTest('replay recording should contain fetch request span', async ({ getLoc sentryTest.skip(); } - await page.route('https://example.com', route => { + await page.route('https://sentry-test-site.io', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -27,7 +27,7 @@ sentryTest('replay recording should contain fetch request span', async ({ getLoc const { performanceSpans: spans0 } = getReplayRecordingContent(req0); - await Promise.all([page.waitForResponse('https://example.com'), page.locator('#fetch').click()]); + await Promise.all([page.waitForResponse('https://sentry-test-site.io'), page.locator('#fetch').click()]); const { performanceSpans: spans1 } = getReplayRecordingContent(await reqPromise1); @@ -40,7 +40,7 @@ sentryTest('replay recording should contain XHR request span', async ({ getLocal sentryTest.skip(); } - await page.route('https://example.com', route => { + await page.route('https://sentry-test-site.io', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -57,7 +57,7 @@ sentryTest('replay recording should contain XHR request span', async ({ getLocal const { performanceSpans: spans0 } = getReplayRecordingContent(req0); - await Promise.all([page.waitForResponse('https://example.com'), page.locator('#xhr').click()]); + await Promise.all([page.waitForResponse('https://sentry-test-site.io'), page.locator('#xhr').click()]); const { performanceSpans: spans1 } = getReplayRecordingContent(await reqPromise1); diff --git a/dev-packages/browser-integration-tests/suites/replay/slowClick/template.html b/dev-packages/browser-integration-tests/suites/replay/slowClick/template.html index a3f5d9d54882..d83848c1b70d 100644 --- a/dev-packages/browser-integration-tests/suites/replay/slowClick/template.html +++ b/dev-packages/browser-integration-tests/suites/replay/slowClick/template.html @@ -76,7 +76,7 @@

Bottom

document.getElementById('out').innerHTML += 'mutationButton clicked
'; }); document.getElementById('windowOpenButton').addEventListener('click', () => { - window.open('https://example.com/', '_blank'); + window.open('https://github.com/', '_blank'); }); // Do nothing on these elements diff --git a/dev-packages/browser-integration-tests/suites/replay/slowClick/windowOpen/test.ts b/dev-packages/browser-integration-tests/suites/replay/slowClick/windowOpen/test.ts index 3a5187b0fc85..ce13a400a8f9 100644 --- a/dev-packages/browser-integration-tests/suites/replay/slowClick/windowOpen/test.ts +++ b/dev-packages/browser-integration-tests/suites/replay/slowClick/windowOpen/test.ts @@ -8,13 +8,6 @@ sentryTest('window.open() is considered for slow click', async ({ getLocalTestUr sentryTest.skip(); } - await page.route('http://example.com/', route => { - return route.fulfill({ - status: 200, - contentType: 'application/json', - body: JSON.stringify({}), - }); - }); const url = await getLocalTestUrl({ testDir: __dirname }); @@ -63,5 +56,5 @@ sentryTest('window.open() is considered for slow click', async ({ getLocalTestUr const pages = context.pages(); expect(pages.length).toBe(2); - expect(pages[1].url()).toBe('https://example.com/'); + expect(pages[1].url()).toBe('https://github.com/'); }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js index f62499b1e9c5..d6f0a49631a8 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js @@ -1 +1 @@ -fetch('http://example.com/0').then(fetch('http://example.com/1').then(fetch('http://example.com/2'))); +fetch('http://sentry-test-site.io/0').then(fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2'))); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/test.ts index e23ba53e3817..8cbfdf4f1d10 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/test.ts @@ -10,7 +10,7 @@ sentryTest('should create fetch spans with http timing @firefox', async ({ brows if (shouldSkipTracingTest() || !supportedBrowsers.includes(browserName)) { sentryTest.skip(); } - await page.route('http://example.com/*', async route => { + await page.route('http://sentry-test-site.io/*', async route => { const request = route.request(); const postData = await request.postDataJSON(); @@ -33,7 +33,7 @@ sentryTest('should create fetch spans with http timing @firefox', async ({ brows await page.pause(); requestSpans?.forEach((span, index) => expect(span).toMatchObject({ - description: `GET http://example.com/${index}`, + description: `GET http://sentry-test-site.io/${index}`, parent_span_id: tracingEvent.contexts?.trace?.span_id, span_id: expect.stringMatching(/[a-f0-9]{16}/), start_timestamp: expect.any(Number), diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-disabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-disabled/template.html index 4cd015b16f51..fd9aea24c816 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-disabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-disabled/template.html @@ -5,6 +5,6 @@
Rendered Before Long Animation Frame
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/template.html index ed02d1117097..fa4d77f1d6dd 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/template.html @@ -8,6 +8,6 @@ - + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/test.ts index ca46bc078e90..d28ec456f9da 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/test.ts @@ -33,7 +33,7 @@ sentryTest( expect(uiSpans?.length).toBeGreaterThanOrEqual(1); const topLevelUISpan = (uiSpans || []).find( - span => span.data?.['browser.script.invoker'] === 'https://example.com/path/to/script.js', + span => span.data?.['browser.script.invoker'] === 'https://sentry-test-site.io/path/to/script.js', )!; expect(topLevelUISpan).toEqual( expect.objectContaining({ @@ -41,9 +41,9 @@ sentryTest( description: 'Main UI thread blocked', parent_span_id: eventData.contexts?.trace?.span_id, data: { - 'code.filepath': 'https://example.com/path/to/script.js', + 'code.filepath': 'https://sentry-test-site.io/path/to/script.js', 'browser.script.source_char_position': 0, - 'browser.script.invoker': 'https://example.com/path/to/script.js', + 'browser.script.invoker': 'https://sentry-test-site.io/path/to/script.js', 'browser.script.invoker_type': 'classic-script', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.long-animation-frame', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics', @@ -98,7 +98,7 @@ sentryTest( data: { 'browser.script.invoker': 'BUTTON#clickme.onclick', 'browser.script.invoker_type': 'event-listener', - 'code.filepath': 'https://example.com/path/to/script.js', + 'code.filepath': 'https://sentry-test-site.io/path/to/script.js', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.long-animation-frame', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics', }, diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-non-chromium/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-non-chromium/template.html index 5c3a14114991..6fe842b3da4c 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-non-chromium/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-non-chromium/template.html @@ -5,6 +5,6 @@
Rendered Before Long Task
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/template.html index ed02d1117097..fa4d77f1d6dd 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/template.html @@ -8,6 +8,6 @@ - + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/test.ts index b43e383be985..809b32ea0ac5 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/test.ts @@ -35,7 +35,7 @@ sentryTest( expect(uiSpans?.length).toBeGreaterThanOrEqual(1); const topLevelUISpan = (uiSpans || []).find( - span => span.data?.['browser.script.invoker'] === 'https://example.com/path/to/script.js', + span => span.data?.['browser.script.invoker'] === 'https://sentry-test-site.io/path/to/script.js', )!; expect(topLevelUISpan).toEqual( expect.objectContaining({ @@ -43,9 +43,9 @@ sentryTest( description: 'Main UI thread blocked', parent_span_id: eventData.contexts?.trace?.span_id, data: { - 'code.filepath': 'https://example.com/path/to/script.js', + 'code.filepath': 'https://sentry-test-site.io/path/to/script.js', 'browser.script.source_char_position': 0, - 'browser.script.invoker': 'https://example.com/path/to/script.js', + 'browser.script.invoker': 'https://sentry-test-site.io/path/to/script.js', 'browser.script.invoker_type': 'classic-script', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.long-animation-frame', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics', @@ -100,7 +100,7 @@ sentryTest( data: { 'browser.script.invoker': 'BUTTON#clickme.onclick', 'browser.script.invoker_type': 'event-listener', - 'code.filepath': 'https://example.com/path/to/script.js', + 'code.filepath': 'https://sentry-test-site.io/path/to/script.js', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.long-animation-frame', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics', }, diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-before-navigation/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-before-navigation/template.html index 1c6430a388b2..9e6ca42f0be0 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-before-navigation/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-before-navigation/template.html @@ -5,7 +5,6 @@
Rendered Before Long Task
-

Heading

diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-before-navigation/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-before-navigation/test.ts index 2250fa234faf..3261c99d981b 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-before-navigation/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-before-navigation/test.ts @@ -13,6 +13,8 @@ sentryTest( } const url = await getLocalTestUrl({ testDir: __dirname }); + await page.route('**/path/to/script.js', route => route.fulfill({ path: `${__dirname}/assets/script.js` })); + await page.goto(url); const navigationTransactionEventPromise = getFirstSentryEnvelopeRequest(page); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-disabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-disabled/template.html index 5c3a14114991..6fe842b3da4c 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-disabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-disabled/template.html @@ -5,6 +5,6 @@
Rendered Before Long Task
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-enabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-enabled/template.html index 5c3a14114991..6fe842b3da4c 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-enabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-enabled/template.html @@ -5,6 +5,6 @@
Rendered Before Long Task
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-no-animation-frame/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-no-animation-frame/template.html index 5c3a14114991..6fe842b3da4c 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-no-animation-frame/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-no-animation-frame/template.html @@ -5,6 +5,6 @@
Rendered Before Long Task
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/init.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/init.js index 7cd076a052e5..432f6f702acb 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], tracesSampleRate: 1, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js index f62499b1e9c5..d6f0a49631a8 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js @@ -1 +1 @@ -fetch('http://example.com/0').then(fetch('http://example.com/1').then(fetch('http://example.com/2'))); +fetch('http://sentry-test-site.io/0').then(fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2'))); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/test.ts index 499b81e966d1..54553c3959a7 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js index f62499b1e9c5..d6f0a49631a8 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js @@ -1 +1 @@ -fetch('http://example.com/0').then(fetch('http://example.com/1').then(fetch('http://example.com/2'))); +fetch('http://sentry-test-site.io/0').then(fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2'))); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/test.ts index a56c99ece38b..5b9d26a9db2d 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/init.js b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/init.js index 9c7cdb7e11b6..6e29eb2e65ed 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/init.js @@ -6,6 +6,6 @@ Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration({ instrumentNavigation: false, instrumentPageLoad: false })], tracesSampleRate: 1, - tracePropagationTargets: ['example.com'], + tracePropagationTargets: ['sentry-test-site.io'], release: '1.1.1', }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/subject.js b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/subject.js index 163082710a13..d601d21e7154 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/subject.js @@ -26,7 +26,7 @@ btnUpdateName.addEventListener('click', () => { }); btnMakeRequest.addEventListener('click', () => { - fetch('https://example.com/api'); + fetch('https://sentry-test-site.io/api'); }); btnCaptureError.addEventListener('click', () => { diff --git a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/test.ts b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/test.ts index 829d75924ac8..fb59bdec2381 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/test.ts @@ -16,6 +16,14 @@ sentryTest('updates the DSC when the txn name is updated and high-quality', asyn const url = await getLocalTestUrl({ testDir: __dirname }); + await page.route('http://sentry-test-site.io/**/*', route => { + return route.fulfill({ + status: 200, + contentType: 'application/json', + body: JSON.stringify({}), + }); + }); + await page.goto(url); /* @@ -168,7 +176,7 @@ sentryTest('updates the DSC when the txn name is updated and high-quality', asyn }); async function makeRequestAndGetBaggageItems(page: Page): Promise { - const requestPromise = page.waitForRequest('https://example.com/*'); + const requestPromise = page.waitForRequest('https://sentry-test-site.io/*'); await page.locator('#btnMakeRequest').click(); const request = await requestPromise; diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/handlers-lcp/template.html b/dev-packages/browser-integration-tests/suites/tracing/metrics/handlers-lcp/template.html index caf4b8f2deab..5321919b9dc2 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/handlers-lcp/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/handlers-lcp/template.html @@ -5,7 +5,7 @@
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/template.html b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/template.html index 0d16f2a27a19..0b4c82c77224 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/template.html @@ -4,9 +4,9 @@ - - - + + + Rendered diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts index 9478b8f833f7..a1b1947c32ca 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts @@ -13,7 +13,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca const isWebkitRun = browserName === 'webkit'; // Intercepting asset requests to avoid network-related flakiness and random retries (on Firefox). - await page.route('https://example.com/path/to/image.svg', (route: Route) => + await page.route('https://sentry-test-site.io/path/to/image.svg', (route: Route) => route.fulfill({ path: `${__dirname}/assets/image.svg`, headers: { @@ -22,7 +22,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca }, }), ); - await page.route('https://example.com/path/to/script.js', (route: Route) => + await page.route('https://sentry-test-site.io/path/to/script.js', (route: Route) => route.fulfill({ path: `${__dirname}/assets/script.js`, headers: { @@ -31,7 +31,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca }, }), ); - await page.route('https://example.com/path/to/style.css', (route: Route) => + await page.route('https://sentry-test-site.io/path/to/style.css', (route: Route) => route.fulfill({ path: `${__dirname}/assets/style.css`, headers: { @@ -58,7 +58,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca const hasCdnBundle = (process.env.PW_BUNDLE || '').startsWith('bundle'); - const expectedScripts = ['/init.bundle.js', '/subject.bundle.js', 'https://example.com/path/to/script.js']; + const expectedScripts = ['/init.bundle.js', '/subject.bundle.js', 'https://sentry-test-site.io/path/to/script.js']; if (hasCdnBundle) { expectedScripts.unshift('/cdn.bundle.js'); } @@ -67,7 +67,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca expect(scriptSpans?.map(({ parent_span_id }) => parent_span_id)).toEqual(expectedScripts.map(() => spanId)); const customScriptSpan = scriptSpans?.find( - ({ description }) => description === 'https://example.com/path/to/script.js', + ({ description }) => description === 'https://sentry-test-site.io/path/to/script.js', ); expect(imgSpan).toEqual({ @@ -79,7 +79,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'network.protocol.version': 'unknown', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'resource.img', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics', - 'server.address': 'example.com', + 'server.address': 'sentry-test-site.io', 'url.same_origin': false, 'url.scheme': 'https', ...(!isWebkitRun && { @@ -87,7 +87,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'http.response_delivery_type': '', }), }, - description: 'https://example.com/path/to/image.svg', + description: 'https://sentry-test-site.io/path/to/image.svg', op: 'resource.img', origin: 'auto.resource.browser.metrics', parent_span_id: spanId, @@ -106,7 +106,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'network.protocol.version': 'unknown', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'resource.link', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics', - 'server.address': 'example.com', + 'server.address': 'sentry-test-site.io', 'url.same_origin': false, 'url.scheme': 'https', ...(!isWebkitRun && { @@ -114,7 +114,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'http.response_delivery_type': '', }), }, - description: 'https://example.com/path/to/style.css', + description: 'https://sentry-test-site.io/path/to/style.css', op: 'resource.link', origin: 'auto.resource.browser.metrics', parent_span_id: spanId, @@ -133,7 +133,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'network.protocol.version': 'unknown', 'sentry.op': 'resource.script', 'sentry.origin': 'auto.resource.browser.metrics', - 'server.address': 'example.com', + 'server.address': 'sentry-test-site.io', 'url.same_origin': false, 'url.scheme': 'https', ...(!isWebkitRun && { @@ -141,7 +141,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'http.response_delivery_type': '', }), }, - description: 'https://example.com/path/to/script.js', + description: 'https://sentry-test-site.io/path/to/script.js', op: 'resource.script', origin: 'auto.resource.browser.metrics', parent_span_id: spanId, diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/template.html b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/template.html index bf7617ea8709..5aec645c547e 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/template.html @@ -5,6 +5,6 @@
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals/template.html b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals/template.html index d4c01b121bf7..d3dbaa738286 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals/template.html @@ -5,7 +5,7 @@
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/init.js index 5cfae0864821..478efd583377 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/init.js @@ -4,5 +4,5 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/subject.js index eef6d917a2d8..72eed0642fe4 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/subject.js @@ -1,5 +1,5 @@ -fetch('http://example.com/0').then( - fetch('http://example.com/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( - fetch('http://example.com/2'), +fetch('http://sentry-test-site.io/0').then( + fetch('http://sentry-test-site.io/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( + fetch('http://sentry-test-site.io/2'), ), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/test.ts index 56bdc97f7f66..a7633b76d244 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/init.js index 203a32557f21..48c60d220ce8 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], tracesSampleRate: 0, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/subject.js index eef6d917a2d8..72eed0642fe4 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/subject.js @@ -1,5 +1,5 @@ -fetch('http://example.com/0').then( - fetch('http://example.com/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( - fetch('http://example.com/2'), +fetch('http://sentry-test-site.io/0').then( + fetch('http://sentry-test-site.io/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( + fetch('http://sentry-test-site.io/2'), ), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/test.ts index 113c1d107454..58c9fde27cf4 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/test.ts @@ -13,7 +13,7 @@ sentryTest('should attach `sentry-trace` header to unsampled fetch requests', as const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/init.js index 89854ab72450..8f1eaf6850c9 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], // no tracesSampleRate defined means TWP mode }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/subject.js index eef6d917a2d8..72eed0642fe4 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/subject.js @@ -1,5 +1,5 @@ -fetch('http://example.com/0').then( - fetch('http://example.com/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( - fetch('http://example.com/2'), +fetch('http://sentry-test-site.io/0').then( + fetch('http://sentry-test-site.io/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( + fetch('http://sentry-test-site.io/2'), ), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/test.ts index bbbed3acb92d..aad914df3594 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/init.js index 7cd076a052e5..432f6f702acb 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], tracesSampleRate: 1, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/subject.js index 70a1992e9f8b..0cb97d9da52a 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/subject.js @@ -1,4 +1,4 @@ -const request = new Request('http://example.com/api/test/', { +const request = new Request('http://sentry-test-site.io/api/test/', { headers: { foo: '11' }, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/test.ts index 9219aae27f6c..c8fb53fdcf08 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/test.ts @@ -10,7 +10,7 @@ sentryTest( sentryTest.skip(); } - const requestPromise = page.waitForRequest('http://example.com/api/test/'); + const requestPromise = page.waitForRequest('http://sentry-test-site.io/api/test/'); const url = await getLocalTestUrl({ testDir: __dirname }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch/subject.js index eef6d917a2d8..72eed0642fe4 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch/subject.js @@ -1,5 +1,5 @@ -fetch('http://example.com/0').then( - fetch('http://example.com/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( - fetch('http://example.com/2'), +fetch('http://sentry-test-site.io/0').then( + fetch('http://sentry-test-site.io/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( + fetch('http://sentry-test-site.io/2'), ), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch/test.ts index a295a69a1cf1..161dcef92191 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch/test.ts @@ -11,7 +11,7 @@ sentryTest('should create spans for fetch requests', async ({ getLocalTestUrl, p sentryTest.skip(); } - await page.route('http://example.com/*', route => route.fulfill({ body: 'ok' })); + await page.route('http://sentry-test-site.io/*', route => route.fulfill({ body: 'ok' })); const url = await getLocalTestUrl({ testDir: __dirname }); @@ -24,7 +24,7 @@ sentryTest('should create spans for fetch requests', async ({ getLocalTestUrl, p requestSpans?.forEach((span, index) => expect(span).toMatchObject({ - description: `GET http://example.com/${index}`, + description: `GET http://sentry-test-site.io/${index}`, parent_span_id: tracingEvent.contexts?.trace?.span_id, span_id: expect.stringMatching(/[a-f0-9]{16}/), start_timestamp: expect.any(Number), @@ -32,9 +32,9 @@ sentryTest('should create spans for fetch requests', async ({ getLocalTestUrl, p trace_id: tracingEvent.contexts?.trace?.trace_id, data: { 'http.method': 'GET', - 'http.url': `http://example.com/${index}`, - url: `http://example.com/${index}`, - 'server.address': 'example.com', + 'http.url': `http://sentry-test-site.io/${index}`, + url: `http://sentry-test-site.io/${index}`, + 'server.address': 'sentry-test-site.io', type: 'fetch', }, }), @@ -46,14 +46,14 @@ sentryTest('should attach `sentry-trace` header to fetch requests', async ({ get sentryTest.skip(); } - await page.route('http://example.com/*', route => route.fulfill({ body: 'ok' })); + await page.route('http://sentry-test-site.io/*', route => route.fulfill({ body: 'ok' })); const url = await getLocalTestUrl({ testDir: __dirname }); const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/init.js index 092c43f75eac..e867531e7f37 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/init.js @@ -5,7 +5,7 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], tracesSampleRate: 1, autoSessionTracking: false, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/init.js index 5cfae0864821..478efd583377 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/init.js @@ -4,5 +4,5 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/subject.js index cb5f05dad5c1..8077b68b83a1 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/subject.js @@ -1,12 +1,12 @@ const xhr_1 = new XMLHttpRequest(); -xhr_1.open('GET', 'http://example.com/0'); +xhr_1.open('GET', 'http://sentry-test-site.io/0'); xhr_1.send(); const xhr_2 = new XMLHttpRequest(); -xhr_2.open('GET', 'http://example.com/1'); +xhr_2.open('GET', 'http://sentry-test-site.io/1'); xhr_2.setRequestHeader('X-Test-Header', 'existing-header'); xhr_2.send(); const xhr_3 = new XMLHttpRequest(); -xhr_3.open('GET', 'http://example.com/2'); +xhr_3.open('GET', 'http://sentry-test-site.io/2'); xhr_3.send(); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/test.ts index 56bdc97f7f66..a7633b76d244 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/init.js index 203a32557f21..48c60d220ce8 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], tracesSampleRate: 0, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/subject.js index cb5f05dad5c1..8077b68b83a1 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/subject.js @@ -1,12 +1,12 @@ const xhr_1 = new XMLHttpRequest(); -xhr_1.open('GET', 'http://example.com/0'); +xhr_1.open('GET', 'http://sentry-test-site.io/0'); xhr_1.send(); const xhr_2 = new XMLHttpRequest(); -xhr_2.open('GET', 'http://example.com/1'); +xhr_2.open('GET', 'http://sentry-test-site.io/1'); xhr_2.setRequestHeader('X-Test-Header', 'existing-header'); xhr_2.send(); const xhr_3 = new XMLHttpRequest(); -xhr_3.open('GET', 'http://example.com/2'); +xhr_3.open('GET', 'http://sentry-test-site.io/2'); xhr_3.send(); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/test.ts index cb4149ba27ed..6e4104050f55 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/test.ts @@ -13,7 +13,7 @@ sentryTest('should attach `sentry-trace` header to unsampled xhr requests', asyn const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/init.js index e7db5efdc388..d40203e39b1a 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/init.js @@ -5,5 +5,5 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/subject.js index cb5f05dad5c1..8077b68b83a1 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/subject.js @@ -1,12 +1,12 @@ const xhr_1 = new XMLHttpRequest(); -xhr_1.open('GET', 'http://example.com/0'); +xhr_1.open('GET', 'http://sentry-test-site.io/0'); xhr_1.send(); const xhr_2 = new XMLHttpRequest(); -xhr_2.open('GET', 'http://example.com/1'); +xhr_2.open('GET', 'http://sentry-test-site.io/1'); xhr_2.setRequestHeader('X-Test-Header', 'existing-header'); xhr_2.send(); const xhr_3 = new XMLHttpRequest(); -xhr_3.open('GET', 'http://example.com/2'); +xhr_3.open('GET', 'http://sentry-test-site.io/2'); xhr_3.send(); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/test.ts index f593223d520f..210f1dd9cadc 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr/subject.js index cb5f05dad5c1..8077b68b83a1 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr/subject.js @@ -1,12 +1,12 @@ const xhr_1 = new XMLHttpRequest(); -xhr_1.open('GET', 'http://example.com/0'); +xhr_1.open('GET', 'http://sentry-test-site.io/0'); xhr_1.send(); const xhr_2 = new XMLHttpRequest(); -xhr_2.open('GET', 'http://example.com/1'); +xhr_2.open('GET', 'http://sentry-test-site.io/1'); xhr_2.setRequestHeader('X-Test-Header', 'existing-header'); xhr_2.send(); const xhr_3 = new XMLHttpRequest(); -xhr_3.open('GET', 'http://example.com/2'); +xhr_3.open('GET', 'http://sentry-test-site.io/2'); xhr_3.send(); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/xhr/test.ts index c01797376b64..bd880160a067 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr/test.ts @@ -9,7 +9,7 @@ sentryTest('should create spans for XHR requests', async ({ getLocalTestUrl, pag sentryTest.skip(); } - await page.route('http://example.com/*', route => route.fulfill({ body: 'ok' })); + await page.route('http://sentry-test-site.io/*', route => route.fulfill({ body: 'ok' })); const url = await getLocalTestUrl({ testDir: __dirname }); @@ -20,7 +20,7 @@ sentryTest('should create spans for XHR requests', async ({ getLocalTestUrl, pag requestSpans?.forEach((span, index) => expect(span).toMatchObject({ - description: `GET http://example.com/${index}`, + description: `GET http://sentry-test-site.io/${index}`, parent_span_id: eventData.contexts?.trace?.span_id, span_id: expect.stringMatching(/[a-f0-9]{16}/), start_timestamp: expect.any(Number), @@ -28,9 +28,9 @@ sentryTest('should create spans for XHR requests', async ({ getLocalTestUrl, pag trace_id: eventData.contexts?.trace?.trace_id, data: { 'http.method': 'GET', - 'http.url': `http://example.com/${index}`, - url: `http://example.com/${index}`, - 'server.address': 'example.com', + 'http.url': `http://sentry-test-site.io/${index}`, + url: `http://sentry-test-site.io/${index}`, + 'server.address': 'sentry-test-site.io', type: 'xhr', }, }), @@ -47,7 +47,7 @@ sentryTest('should attach `sentry-trace` header to XHR requests', async ({ getLo const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://example.com/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/init.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/init.js index 3104d71ca659..945eee35f42d 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/init.js @@ -7,6 +7,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration(), feedbackIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], tracesSampleRate: 1, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/navigation/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/navigation/test.ts index ca6e9723ce65..93e02106481c 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/navigation/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/navigation/test.ts @@ -201,7 +201,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://example.com/**', route => { + await page.route('http://sentry-test-site.io/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -217,7 +217,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://example.com/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); await page.goto(`${url}#foo`); await page.locator('#fetchBtn').click(); const [[navigationEvent, navigationTraceHeader], request] = await Promise.all([ @@ -264,7 +264,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://example.com/**', route => { + await page.route('http://sentry-test-site.io/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -280,7 +280,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://example.com/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); await page.goto(`${url}#foo`); await page.locator('#xhrBtn').click(); const [[navigationEvent, navigationTraceHeader], request] = await Promise.all([ diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/subject.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/subject.js index 9528f861a723..5ef7161b6b1d 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/subject.js @@ -5,12 +5,12 @@ errorBtn.addEventListener('click', () => { const fetchBtn = document.getElementById('fetchBtn'); fetchBtn.addEventListener('click', async () => { - await fetch('http://example.com'); + await fetch('http://sentry-test-site.io'); }); const xhrBtn = document.getElementById('xhrBtn'); xhrBtn.addEventListener('click', () => { const xhr = new XMLHttpRequest(); - xhr.open('GET', 'http://example.com'); + xhr.open('GET', 'http://sentry-test-site.io'); xhr.send(); }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/test.ts index d087dd0b32af..fb28601b747d 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/test.ts @@ -207,7 +207,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://example.com/**', route => { + await page.route('http://sentry-test-site.io/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -220,7 +220,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://example.com/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); await page.goto(url); await page.locator('#fetchBtn').click(); const [[pageloadEvent, pageloadTraceHeader], request] = await Promise.all([pageloadEventPromise, requestPromise]); @@ -259,7 +259,7 @@ sentryTest( sentryTest.skip(); } - await page.route('http://example.com/**', route => { + await page.route('http://sentry-test-site.io/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -274,7 +274,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://example.com/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); await page.goto(url); await page.locator('#xhrBtn').click(); const [[pageloadEvent, pageloadTraceHeader], request] = await Promise.all([pageloadEventPromise, requestPromise]); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload/test.ts index 4af462e26aca..b3702e65842e 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload/test.ts @@ -197,7 +197,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://example.com/**', route => { + await page.route('http://sentry-test-site.io/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -210,7 +210,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://example.com/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); await page.goto(url); await page.locator('#fetchBtn').click(); const [[pageloadEvent, pageloadTraceHeader], request] = await Promise.all([pageloadEventPromise, requestPromise]); @@ -254,7 +254,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://example.com/**', route => { + await page.route('http://sentry-test-site.io/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -267,7 +267,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://example.com/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); await page.goto(url); await page.locator('#xhrBtn').click(); const [[pageloadEvent, pageloadTraceHeader], request] = await Promise.all([pageloadEventPromise, requestPromise]); @@ -311,7 +311,7 @@ sentryTest( // const url = await getLocalTestUrl({ testDir: __dirname }); -// await page.route('http://example.com/**', route => { +// await page.route('http://sentry-test-site.io/**', route => { // return route.fulfill({ // status: 200, // contentType: 'application/json', @@ -346,7 +346,7 @@ sentryTest( // trace_id: pageloadTraceId, // }); -// const requestPromise = page.waitForRequest('http://example.com/*'); +// const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); // await page.locator('#xhrBtn').click(); // const request = await requestPromise; @@ -369,7 +369,7 @@ sentryTest( // const url = await getLocalTestUrl({ testDir: __dirname }); -// await page.route('http://example.com/**', route => { +// await page.route('http://sentry-test-site.io/**', route => { // return route.fulfill({ // status: 200, // contentType: 'application/json', @@ -406,7 +406,7 @@ sentryTest( // trace_id: pageloadTraceId, // }); -// const requestPromise = page.waitForRequest('http://example.com/**'); +// const requestPromise = page.waitForRequest('http://sentry-test-site.io/**'); // const customTransactionEventPromise = getFirstSentryEnvelopeRequest( // page, // undefined, diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/subject.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/subject.js index 5b28df9da5e8..003075844c8c 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/subject.js @@ -2,7 +2,7 @@ const newTraceBtn = document.getElementById('newTrace'); newTraceBtn.addEventListener('click', async () => { Sentry.startNewTrace(() => { Sentry.startSpan({ op: 'ui.interaction.click', name: 'new-trace' }, async () => { - await fetch('http://example.com'); + await fetch('http://sentry-test-site.io'); }); }); }); @@ -10,6 +10,6 @@ newTraceBtn.addEventListener('click', async () => { const oldTraceBtn = document.getElementById('oldTrace'); oldTraceBtn.addEventListener('click', async () => { Sentry.startSpan({ op: 'ui.interaction.click', name: 'old-trace' }, async () => { - await fetch('http://example.com'); + await fetch('http://sentry-test-site.io'); }); }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/test.ts index a785327a0031..a26a9ec54dff 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/test.ts @@ -17,7 +17,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://example.com/**', route => { + await page.route('http://sentry-test-site.io/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/subject.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/subject.js index a2f6271463ce..00e6d7e2a95e 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/subject.js @@ -5,19 +5,19 @@ errorBtn.addEventListener('click', () => { const fetchBtn = document.getElementById('fetchBtn'); fetchBtn.addEventListener('click', async () => { - await fetch('http://example.com'); + await fetch('http://sentry-test-site.io'); }); const xhrBtn = document.getElementById('xhrBtn'); xhrBtn.addEventListener('click', () => { const xhr = new XMLHttpRequest(); - xhr.open('GET', 'http://example.com'); + xhr.open('GET', 'http://sentry-test-site.io'); xhr.send(); }); const spanAndFetchBtn = document.getElementById('spanAndFetchBtn'); spanAndFetchBtn.addEventListener('click', () => { Sentry.startSpan({ name: 'custom-root-span' }, async () => { - await fetch('http://example.com'); + await fetch('http://sentry-test-site.io'); }); }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/init.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/init.js index 7cd076a052e5..432f6f702acb 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], tracesSampleRate: 1, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js index 5951d6d33411..feaaf00eb75c 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js @@ -8,10 +8,10 @@ fetchPojo.addEventListener('click', () => { // Make two fetch requests that reuse the same fetch object Sentry.startSpan({ name: 'does-not-matter-1' }, () => - fetch('http://example.com/fetch-pojo', fetchOptions) + fetch('http://sentry-test-site.io/fetch-pojo', fetchOptions) .then(res => res.text()) .then(() => - Sentry.startSpan({ name: 'does-not-matter-2' }, () => fetch('http://example.com/fetch-pojo', fetchOptions)), + Sentry.startSpan({ name: 'does-not-matter-2' }, () => fetch('http://sentry-test-site.io/fetch-pojo', fetchOptions)), ), ); }); @@ -26,10 +26,10 @@ fetchArray.addEventListener('click', () => { // Make two fetch requests that reuse the same fetch object Sentry.startSpan({ name: 'does-not-matter-1' }, () => - fetch('http://example.com/fetch-array', fetchOptions) + fetch('http://sentry-test-site.io/fetch-array', fetchOptions) .then(res => res.text()) .then(() => - Sentry.startSpan({ name: 'does-not-matter-2' }, () => fetch('http://example.com/fetch-array', fetchOptions)), + Sentry.startSpan({ name: 'does-not-matter-2' }, () => fetch('http://sentry-test-site.io/fetch-array', fetchOptions)), ), ); }); @@ -44,10 +44,10 @@ fetchHeaders.addEventListener('click', () => { // Make two fetch requests that reuse the same fetch object Sentry.startSpan({ name: 'does-not-matter-1' }, () => - fetch('http://example.com/fetch-headers', fetchOptions) + fetch('http://sentry-test-site.io/fetch-headers', fetchOptions) .then(res => res.text()) .then(() => - Sentry.startSpan({ name: 'does-not-matter-2' }, () => fetch('http://example.com/fetch-headers', fetchOptions)), + Sentry.startSpan({ name: 'does-not-matter-2' }, () => fetch('http://sentry-test-site.io/fetch-headers', fetchOptions)), ), ); }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts index 5ae2f83924d0..74a808766127 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts @@ -50,15 +50,15 @@ sentryTest( await page.goto(url); await sentryTest.step('fetch with POJO', () => - assertRequests({ page, buttonSelector: '#fetchPojo', requestMatcher: 'http://example.com/fetch-pojo' }), + assertRequests({ page, buttonSelector: '#fetchPojo', requestMatcher: 'http://sentry-test-site.io/fetch-pojo' }), ); await sentryTest.step('fetch with array', () => - assertRequests({ page, buttonSelector: '#fetchArray', requestMatcher: 'http://example.com/fetch-array' }), + assertRequests({ page, buttonSelector: '#fetchArray', requestMatcher: 'http://sentry-test-site.io/fetch-array' }), ); await sentryTest.step('fetch with Headers instance', () => - assertRequests({ page, buttonSelector: '#fetchHeaders', requestMatcher: 'http://example.com/fetch-headers' }), + assertRequests({ page, buttonSelector: '#fetchHeaders', requestMatcher: 'http://sentry-test-site.io/fetch-headers' }), ); }, ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/init.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/init.js index c273986e1a94..68ea0b16818a 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/init.js @@ -6,5 +6,5 @@ Sentry.init({ // in browser TwP means not setting tracesSampleRate but adding browserTracingIntegration, dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://example.com'], + tracePropagationTargets: ['http://sentry-test-site.io'], }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/test.ts index bea3c10cbde5..40b2ea0f816e 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/test.ts @@ -105,7 +105,7 @@ sentryTest('outgoing fetch requests have new traceId after navigation', async ({ const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://example.com/**', route => { + await page.route('http://sentry-test-site.io/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -115,7 +115,7 @@ sentryTest('outgoing fetch requests have new traceId after navigation', async ({ await page.goto(url); - const requestPromise = page.waitForRequest('http://example.com/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); await page.locator('#fetchBtn').click(); const request = await requestPromise; const headers = request.headers(); @@ -126,7 +126,7 @@ sentryTest('outgoing fetch requests have new traceId after navigation', async ({ await page.goto(`${url}#navigation`); - const requestPromise2 = page.waitForRequest('http://example.com/*'); + const requestPromise2 = page.waitForRequest('http://sentry-test-site.io/*'); await page.locator('#fetchBtn').click(); const request2 = await requestPromise2; const headers2 = request2.headers(); @@ -147,7 +147,7 @@ sentryTest('outgoing XHR requests have new traceId after navigation', async ({ g const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://example.com/**', route => { + await page.route('http://sentry-test-site.io/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -157,7 +157,7 @@ sentryTest('outgoing XHR requests have new traceId after navigation', async ({ g await page.goto(url); - const requestPromise = page.waitForRequest('http://example.com/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); await page.locator('#xhrBtn').click(); const request = await requestPromise; const headers = request.headers(); @@ -168,7 +168,7 @@ sentryTest('outgoing XHR requests have new traceId after navigation', async ({ g await page.goto(`${url}#navigation`); - const requestPromise2 = page.waitForRequest('http://example.com/*'); + const requestPromise2 = page.waitForRequest('http://sentry-test-site.io/*'); await page.locator('#xhrBtn').click(); const request2 = await requestPromise2; const headers2 = request2.headers(); diff --git a/dev-packages/browser-integration-tests/utils/replayEventTemplates.ts b/dev-packages/browser-integration-tests/utils/replayEventTemplates.ts index 52dbbca1c086..b618eff9b20d 100644 --- a/dev-packages/browser-integration-tests/utils/replayEventTemplates.ts +++ b/dev-packages/browser-integration-tests/utils/replayEventTemplates.ts @@ -190,7 +190,7 @@ export const expectedFPPerformanceSpan = { export const expectedFetchPerformanceSpan = { op: 'resource.fetch', - description: 'https://example.com', + description: 'https://sentry-test-site.io', startTimestamp: expect.any(Number), endTimestamp: expect.any(Number), data: { @@ -215,7 +215,7 @@ export const expectedFetchPerformanceSpan = { export const expectedXHRPerformanceSpan = { op: 'resource.xhr', - description: 'https://example.com', + description: 'https://sentry-test-site.io', startTimestamp: expect.any(Number), endTimestamp: expect.any(Number), data: { From f4ddd4b4829213ff2c5abcd8861d9ca74b5aad1b Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Thu, 6 Feb 2025 17:16:11 +0100 Subject: [PATCH 2/4] fix formatting --- .../suites/replay/slowClick/windowOpen/test.ts | 1 - .../http-timings/subject.js | 4 +++- .../tracePropagationTargets/customTargets/subject.js | 4 +++- .../defaultTargetsNoMatch/subject.js | 4 +++- .../trace-lifetime/trace-header-merging/subject.js | 12 +++++++++--- .../trace-lifetime/trace-header-merging/test.ts | 6 +++++- 6 files changed, 23 insertions(+), 8 deletions(-) diff --git a/dev-packages/browser-integration-tests/suites/replay/slowClick/windowOpen/test.ts b/dev-packages/browser-integration-tests/suites/replay/slowClick/windowOpen/test.ts index ce13a400a8f9..b784ad570e8d 100644 --- a/dev-packages/browser-integration-tests/suites/replay/slowClick/windowOpen/test.ts +++ b/dev-packages/browser-integration-tests/suites/replay/slowClick/windowOpen/test.ts @@ -8,7 +8,6 @@ sentryTest('window.open() is considered for slow click', async ({ getLocalTestUr sentryTest.skip(); } - const url = await getLocalTestUrl({ testDir: __dirname }); await Promise.all([waitForReplayRequest(page, 0), page.goto(url)]); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js index d6f0a49631a8..6b7c82cb6105 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js @@ -1 +1,3 @@ -fetch('http://sentry-test-site.io/0').then(fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2'))); +fetch('http://sentry-test-site.io/0').then( + fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2')), +); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js index d6f0a49631a8..6b7c82cb6105 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js @@ -1 +1,3 @@ -fetch('http://sentry-test-site.io/0').then(fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2'))); +fetch('http://sentry-test-site.io/0').then( + fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2')), +); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js index d6f0a49631a8..6b7c82cb6105 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js @@ -1 +1,3 @@ -fetch('http://sentry-test-site.io/0').then(fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2'))); +fetch('http://sentry-test-site.io/0').then( + fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2')), +); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js index feaaf00eb75c..271c6dffd260 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js @@ -11,7 +11,9 @@ fetchPojo.addEventListener('click', () => { fetch('http://sentry-test-site.io/fetch-pojo', fetchOptions) .then(res => res.text()) .then(() => - Sentry.startSpan({ name: 'does-not-matter-2' }, () => fetch('http://sentry-test-site.io/fetch-pojo', fetchOptions)), + Sentry.startSpan({ name: 'does-not-matter-2' }, () => + fetch('http://sentry-test-site.io/fetch-pojo', fetchOptions), + ), ), ); }); @@ -29,7 +31,9 @@ fetchArray.addEventListener('click', () => { fetch('http://sentry-test-site.io/fetch-array', fetchOptions) .then(res => res.text()) .then(() => - Sentry.startSpan({ name: 'does-not-matter-2' }, () => fetch('http://sentry-test-site.io/fetch-array', fetchOptions)), + Sentry.startSpan({ name: 'does-not-matter-2' }, () => + fetch('http://sentry-test-site.io/fetch-array', fetchOptions), + ), ), ); }); @@ -47,7 +51,9 @@ fetchHeaders.addEventListener('click', () => { fetch('http://sentry-test-site.io/fetch-headers', fetchOptions) .then(res => res.text()) .then(() => - Sentry.startSpan({ name: 'does-not-matter-2' }, () => fetch('http://sentry-test-site.io/fetch-headers', fetchOptions)), + Sentry.startSpan({ name: 'does-not-matter-2' }, () => + fetch('http://sentry-test-site.io/fetch-headers', fetchOptions), + ), ), ); }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts index 74a808766127..f2b07cc927e7 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts @@ -58,7 +58,11 @@ sentryTest( ); await sentryTest.step('fetch with Headers instance', () => - assertRequests({ page, buttonSelector: '#fetchHeaders', requestMatcher: 'http://sentry-test-site.io/fetch-headers' }), + assertRequests({ + page, + buttonSelector: '#fetchHeaders', + requestMatcher: 'http://sentry-test-site.io/fetch-headers', + }), ); }, ); From c5f4b18c74ab69d723786d27eb5fe5d8a9195c49 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Fri, 7 Feb 2025 08:28:17 +0100 Subject: [PATCH 3/4] use `sentry-test-site.example` --- .../xhr/onreadystatechange/subject.js | 2 +- .../xhr/onreadystatechange/test.ts | 2 +- .../suites/replay/requests/subject.js | 4 ++-- .../suites/replay/requests/test.ts | 8 +++---- .../http-timings/subject.js | 4 ++-- .../http-timings/test.ts | 4 ++-- .../template.html | 2 +- .../template.html | 2 +- .../long-animation-frame-enabled/test.ts | 8 +++---- .../template.html | 2 +- .../template.html | 2 +- .../test.ts | 8 +++---- .../long-tasks-disabled/template.html | 2 +- .../long-tasks-enabled/template.html | 2 +- .../template.html | 2 +- .../customTargets/init.js | 2 +- .../customTargets/subject.js | 4 ++-- .../customTargets/test.ts | 2 +- .../defaultTargetsNoMatch/subject.js | 4 ++-- .../defaultTargetsNoMatch/test.ts | 2 +- .../tracing/dsc-txn-name-update/init.js | 2 +- .../tracing/dsc-txn-name-update/subject.js | 2 +- .../tracing/dsc-txn-name-update/test.ts | 4 ++-- .../metrics/handlers-lcp/template.html | 2 +- .../pageload-resource-spans/template.html | 6 ++--- .../metrics/pageload-resource-spans/test.ts | 22 +++++++++---------- .../metrics/web-vitals-lcp/template.html | 2 +- .../tracing/metrics/web-vitals/template.html | 2 +- .../tracing/request/fetch-no-tracing/init.js | 2 +- .../request/fetch-no-tracing/subject.js | 6 ++--- .../tracing/request/fetch-no-tracing/test.ts | 2 +- .../request/fetch-tracing-unsampled/init.js | 2 +- .../fetch-tracing-unsampled/subject.js | 6 ++--- .../request/fetch-tracing-unsampled/test.ts | 2 +- .../fetch-tracing-without-performance/init.js | 2 +- .../subject.js | 6 ++--- .../fetch-tracing-without-performance/test.ts | 2 +- .../request/fetch-with-request/init.js | 2 +- .../request/fetch-with-request/subject.js | 2 +- .../request/fetch-with-request/test.ts | 2 +- .../suites/tracing/request/fetch/subject.js | 6 ++--- .../suites/tracing/request/fetch/test.ts | 14 ++++++------ .../suites/tracing/request/init.js | 2 +- .../tracing/request/xhr-no-tracing/init.js | 2 +- .../tracing/request/xhr-no-tracing/subject.js | 6 ++--- .../tracing/request/xhr-no-tracing/test.ts | 2 +- .../request/xhr-tracing-unsampled/init.js | 2 +- .../request/xhr-tracing-unsampled/subject.js | 6 ++--- .../request/xhr-tracing-unsampled/test.ts | 2 +- .../xhr-tracing-without-performance/init.js | 2 +- .../subject.js | 6 ++--- .../xhr-tracing-without-performance/test.ts | 2 +- .../suites/tracing/request/xhr/subject.js | 6 ++--- .../suites/tracing/request/xhr/test.ts | 12 +++++----- .../suites/tracing/trace-lifetime/init.js | 2 +- .../tracing/trace-lifetime/navigation/test.ts | 8 +++---- .../trace-lifetime/pageload-meta/subject.js | 4 ++-- .../trace-lifetime/pageload-meta/test.ts | 8 +++---- .../tracing/trace-lifetime/pageload/test.ts | 16 +++++++------- .../trace-lifetime/startNewTrace/subject.js | 4 ++-- .../trace-lifetime/startNewTrace/test.ts | 2 +- .../suites/tracing/trace-lifetime/subject.js | 6 ++--- .../trace-header-merging/init.js | 2 +- .../trace-header-merging/subject.js | 12 +++++----- .../trace-header-merging/test.ts | 6 ++--- .../tracing-without-performance/init.js | 2 +- .../tracing-without-performance/test.ts | 12 +++++----- .../utils/replayEventTemplates.ts | 4 ++-- 68 files changed, 152 insertions(+), 152 deletions(-) diff --git a/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/subject.js b/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/subject.js index 9a9d41bf7e34..db9f6cb4616a 100644 --- a/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/subject.js +++ b/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/subject.js @@ -1,6 +1,6 @@ window.calls = {}; const xhr = new XMLHttpRequest(); -xhr.open('GET', 'http://sentry-test-site.io'); +xhr.open('GET', 'http://sentry-test-site.example'); xhr.onreadystatechange = function wat() { window.calls[xhr.readyState] = window.calls[xhr.readyState] ? window.calls[xhr.readyState] + 1 : 1; }; diff --git a/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/test.ts b/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/test.ts index 9f0b53924aed..5b693af2f9d4 100644 --- a/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/test.ts +++ b/dev-packages/browser-integration-tests/suites/public-api/instrumentation/xhr/onreadystatechange/test.ts @@ -7,7 +7,7 @@ sentryTest( async ({ getLocalTestUrl, page }) => { const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/', route => { + await page.route('http://sentry-test-site.example/', route => { return route.fulfill({ status: 200, contentType: 'application/json', diff --git a/dev-packages/browser-integration-tests/suites/replay/requests/subject.js b/dev-packages/browser-integration-tests/suites/replay/requests/subject.js index 625a150b0c3e..e3e775227709 100644 --- a/dev-packages/browser-integration-tests/suites/replay/requests/subject.js +++ b/dev-packages/browser-integration-tests/suites/replay/requests/subject.js @@ -6,11 +6,11 @@ document.getElementById('go-background').addEventListener('click', () => { }); document.getElementById('fetch').addEventListener('click', () => { - fetch('https://sentry-test-site.io', { method: 'POST', body: 'foo' }); + fetch('https://sentry-test-site.example', { method: 'POST', body: 'foo' }); }); document.getElementById('xhr').addEventListener('click', () => { const xhr = new XMLHttpRequest(); - xhr.open('GET', 'https://sentry-test-site.io'); + xhr.open('GET', 'https://sentry-test-site.example'); xhr.send(); }); diff --git a/dev-packages/browser-integration-tests/suites/replay/requests/test.ts b/dev-packages/browser-integration-tests/suites/replay/requests/test.ts index bfca9528ba81..fc7693bf1003 100644 --- a/dev-packages/browser-integration-tests/suites/replay/requests/test.ts +++ b/dev-packages/browser-integration-tests/suites/replay/requests/test.ts @@ -10,7 +10,7 @@ sentryTest('replay recording should contain fetch request span', async ({ getLoc sentryTest.skip(); } - await page.route('https://sentry-test-site.io', route => { + await page.route('https://sentry-test-site.example', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -27,7 +27,7 @@ sentryTest('replay recording should contain fetch request span', async ({ getLoc const { performanceSpans: spans0 } = getReplayRecordingContent(req0); - await Promise.all([page.waitForResponse('https://sentry-test-site.io'), page.locator('#fetch').click()]); + await Promise.all([page.waitForResponse('https://sentry-test-site.example'), page.locator('#fetch').click()]); const { performanceSpans: spans1 } = getReplayRecordingContent(await reqPromise1); @@ -40,7 +40,7 @@ sentryTest('replay recording should contain XHR request span', async ({ getLocal sentryTest.skip(); } - await page.route('https://sentry-test-site.io', route => { + await page.route('https://sentry-test-site.example', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -57,7 +57,7 @@ sentryTest('replay recording should contain XHR request span', async ({ getLocal const { performanceSpans: spans0 } = getReplayRecordingContent(req0); - await Promise.all([page.waitForResponse('https://sentry-test-site.io'), page.locator('#xhr').click()]); + await Promise.all([page.waitForResponse('https://sentry-test-site.example'), page.locator('#xhr').click()]); const { performanceSpans: spans1 } = getReplayRecordingContent(await reqPromise1); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js index 6b7c82cb6105..e19cc07e28f5 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/subject.js @@ -1,3 +1,3 @@ -fetch('http://sentry-test-site.io/0').then( - fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2')), +fetch('http://sentry-test-site.example/0').then( + fetch('http://sentry-test-site.example/1').then(fetch('http://sentry-test-site.example/2')), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/test.ts index 8cbfdf4f1d10..9df2acd4245a 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/http-timings/test.ts @@ -10,7 +10,7 @@ sentryTest('should create fetch spans with http timing @firefox', async ({ brows if (shouldSkipTracingTest() || !supportedBrowsers.includes(browserName)) { sentryTest.skip(); } - await page.route('http://sentry-test-site.io/*', async route => { + await page.route('http://sentry-test-site.example/*', async route => { const request = route.request(); const postData = await request.postDataJSON(); @@ -33,7 +33,7 @@ sentryTest('should create fetch spans with http timing @firefox', async ({ brows await page.pause(); requestSpans?.forEach((span, index) => expect(span).toMatchObject({ - description: `GET http://sentry-test-site.io/${index}`, + description: `GET http://sentry-test-site.example/${index}`, parent_span_id: tracingEvent.contexts?.trace?.span_id, span_id: expect.stringMatching(/[a-f0-9]{16}/), start_timestamp: expect.any(Number), diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-disabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-disabled/template.html index fd9aea24c816..a9a1212191ad 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-disabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-disabled/template.html @@ -5,6 +5,6 @@
Rendered Before Long Animation Frame
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/template.html index fa4d77f1d6dd..0d722318c40a 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/template.html @@ -8,6 +8,6 @@ - + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/test.ts index d28ec456f9da..542fbb1a7845 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-enabled/test.ts @@ -33,7 +33,7 @@ sentryTest( expect(uiSpans?.length).toBeGreaterThanOrEqual(1); const topLevelUISpan = (uiSpans || []).find( - span => span.data?.['browser.script.invoker'] === 'https://sentry-test-site.io/path/to/script.js', + span => span.data?.['browser.script.invoker'] === 'https://sentry-test-site.example/path/to/script.js', )!; expect(topLevelUISpan).toEqual( expect.objectContaining({ @@ -41,9 +41,9 @@ sentryTest( description: 'Main UI thread blocked', parent_span_id: eventData.contexts?.trace?.span_id, data: { - 'code.filepath': 'https://sentry-test-site.io/path/to/script.js', + 'code.filepath': 'https://sentry-test-site.example/path/to/script.js', 'browser.script.source_char_position': 0, - 'browser.script.invoker': 'https://sentry-test-site.io/path/to/script.js', + 'browser.script.invoker': 'https://sentry-test-site.example/path/to/script.js', 'browser.script.invoker_type': 'classic-script', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.long-animation-frame', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics', @@ -98,7 +98,7 @@ sentryTest( data: { 'browser.script.invoker': 'BUTTON#clickme.onclick', 'browser.script.invoker_type': 'event-listener', - 'code.filepath': 'https://sentry-test-site.io/path/to/script.js', + 'code.filepath': 'https://sentry-test-site.example/path/to/script.js', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.long-animation-frame', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics', }, diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-non-chromium/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-non-chromium/template.html index 6fe842b3da4c..c217c673954d 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-non-chromium/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-animation-frame-non-chromium/template.html @@ -5,6 +5,6 @@
Rendered Before Long Task
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/template.html index fa4d77f1d6dd..0d722318c40a 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/template.html @@ -8,6 +8,6 @@ - + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/test.ts index 809b32ea0ac5..12ad3cb8a834 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-and-animation-frame-enabled/test.ts @@ -35,7 +35,7 @@ sentryTest( expect(uiSpans?.length).toBeGreaterThanOrEqual(1); const topLevelUISpan = (uiSpans || []).find( - span => span.data?.['browser.script.invoker'] === 'https://sentry-test-site.io/path/to/script.js', + span => span.data?.['browser.script.invoker'] === 'https://sentry-test-site.example/path/to/script.js', )!; expect(topLevelUISpan).toEqual( expect.objectContaining({ @@ -43,9 +43,9 @@ sentryTest( description: 'Main UI thread blocked', parent_span_id: eventData.contexts?.trace?.span_id, data: { - 'code.filepath': 'https://sentry-test-site.io/path/to/script.js', + 'code.filepath': 'https://sentry-test-site.example/path/to/script.js', 'browser.script.source_char_position': 0, - 'browser.script.invoker': 'https://sentry-test-site.io/path/to/script.js', + 'browser.script.invoker': 'https://sentry-test-site.example/path/to/script.js', 'browser.script.invoker_type': 'classic-script', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.long-animation-frame', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics', @@ -100,7 +100,7 @@ sentryTest( data: { 'browser.script.invoker': 'BUTTON#clickme.onclick', 'browser.script.invoker_type': 'event-listener', - 'code.filepath': 'https://sentry-test-site.io/path/to/script.js', + 'code.filepath': 'https://sentry-test-site.example/path/to/script.js', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.long-animation-frame', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics', }, diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-disabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-disabled/template.html index 6fe842b3da4c..c217c673954d 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-disabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-disabled/template.html @@ -5,6 +5,6 @@
Rendered Before Long Task
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-enabled/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-enabled/template.html index 6fe842b3da4c..c217c673954d 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-enabled/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-enabled/template.html @@ -5,6 +5,6 @@
Rendered Before Long Task
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-no-animation-frame/template.html b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-no-animation-frame/template.html index 6fe842b3da4c..c217c673954d 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-no-animation-frame/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/long-tasks-no-animation-frame/template.html @@ -5,6 +5,6 @@
Rendered Before Long Task
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/init.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/init.js index 432f6f702acb..b2280b70e307 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], tracesSampleRate: 1, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js index 6b7c82cb6105..e19cc07e28f5 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/subject.js @@ -1,3 +1,3 @@ -fetch('http://sentry-test-site.io/0').then( - fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2')), +fetch('http://sentry-test-site.example/0').then( + fetch('http://sentry-test-site.example/1').then(fetch('http://sentry-test-site.example/2')), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/test.ts index 54553c3959a7..ca53812a17e4 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/customTargets/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js index 6b7c82cb6105..e19cc07e28f5 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/subject.js @@ -1,3 +1,3 @@ -fetch('http://sentry-test-site.io/0').then( - fetch('http://sentry-test-site.io/1').then(fetch('http://sentry-test-site.io/2')), +fetch('http://sentry-test-site.example/0').then( + fetch('http://sentry-test-site.example/1').then(fetch('http://sentry-test-site.example/2')), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/test.ts index 5b9d26a9db2d..375d0f61ff8a 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/tracePropagationTargets/defaultTargetsNoMatch/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/init.js b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/init.js index 6e29eb2e65ed..b6c2bad12033 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/init.js @@ -6,6 +6,6 @@ Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration({ instrumentNavigation: false, instrumentPageLoad: false })], tracesSampleRate: 1, - tracePropagationTargets: ['sentry-test-site.io'], + tracePropagationTargets: ['sentry-test-site.example'], release: '1.1.1', }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/subject.js b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/subject.js index d601d21e7154..5d353d6bd1e5 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/subject.js @@ -26,7 +26,7 @@ btnUpdateName.addEventListener('click', () => { }); btnMakeRequest.addEventListener('click', () => { - fetch('https://sentry-test-site.io/api'); + fetch('https://sentry-test-site.example/api'); }); btnCaptureError.addEventListener('click', () => { diff --git a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/test.ts b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/test.ts index fb59bdec2381..e8e799191d29 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update/test.ts @@ -16,7 +16,7 @@ sentryTest('updates the DSC when the txn name is updated and high-quality', asyn const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/**/*', route => { + await page.route('http://sentry-test-site.example/**/*', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -176,7 +176,7 @@ sentryTest('updates the DSC when the txn name is updated and high-quality', asyn }); async function makeRequestAndGetBaggageItems(page: Page): Promise { - const requestPromise = page.waitForRequest('https://sentry-test-site.io/*'); + const requestPromise = page.waitForRequest('https://sentry-test-site.example/*'); await page.locator('#btnMakeRequest').click(); const request = await requestPromise; diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/handlers-lcp/template.html b/dev-packages/browser-integration-tests/suites/tracing/metrics/handlers-lcp/template.html index 5321919b9dc2..311465d24627 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/handlers-lcp/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/handlers-lcp/template.html @@ -5,7 +5,7 @@
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/template.html b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/template.html index 0b4c82c77224..8a5d6e665f64 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/template.html @@ -4,9 +4,9 @@ - - - + + + Rendered diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts index a1b1947c32ca..52b4051a5524 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts @@ -13,7 +13,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca const isWebkitRun = browserName === 'webkit'; // Intercepting asset requests to avoid network-related flakiness and random retries (on Firefox). - await page.route('https://sentry-test-site.io/path/to/image.svg', (route: Route) => + await page.route('https://sentry-test-site.example/path/to/image.svg', (route: Route) => route.fulfill({ path: `${__dirname}/assets/image.svg`, headers: { @@ -22,7 +22,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca }, }), ); - await page.route('https://sentry-test-site.io/path/to/script.js', (route: Route) => + await page.route('https://sentry-test-site.example/path/to/script.js', (route: Route) => route.fulfill({ path: `${__dirname}/assets/script.js`, headers: { @@ -31,7 +31,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca }, }), ); - await page.route('https://sentry-test-site.io/path/to/style.css', (route: Route) => + await page.route('https://sentry-test-site.example/path/to/style.css', (route: Route) => route.fulfill({ path: `${__dirname}/assets/style.css`, headers: { @@ -58,7 +58,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca const hasCdnBundle = (process.env.PW_BUNDLE || '').startsWith('bundle'); - const expectedScripts = ['/init.bundle.js', '/subject.bundle.js', 'https://sentry-test-site.io/path/to/script.js']; + const expectedScripts = ['/init.bundle.js', '/subject.bundle.js', 'https://sentry-test-site.example/path/to/script.js']; if (hasCdnBundle) { expectedScripts.unshift('/cdn.bundle.js'); } @@ -67,7 +67,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca expect(scriptSpans?.map(({ parent_span_id }) => parent_span_id)).toEqual(expectedScripts.map(() => spanId)); const customScriptSpan = scriptSpans?.find( - ({ description }) => description === 'https://sentry-test-site.io/path/to/script.js', + ({ description }) => description === 'https://sentry-test-site.example/path/to/script.js', ); expect(imgSpan).toEqual({ @@ -79,7 +79,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'network.protocol.version': 'unknown', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'resource.img', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics', - 'server.address': 'sentry-test-site.io', + 'server.address': 'sentry-test-site.example', 'url.same_origin': false, 'url.scheme': 'https', ...(!isWebkitRun && { @@ -87,7 +87,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'http.response_delivery_type': '', }), }, - description: 'https://sentry-test-site.io/path/to/image.svg', + description: 'https://sentry-test-site.example/path/to/image.svg', op: 'resource.img', origin: 'auto.resource.browser.metrics', parent_span_id: spanId, @@ -106,7 +106,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'network.protocol.version': 'unknown', [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'resource.link', [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics', - 'server.address': 'sentry-test-site.io', + 'server.address': 'sentry-test-site.example', 'url.same_origin': false, 'url.scheme': 'https', ...(!isWebkitRun && { @@ -114,7 +114,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'http.response_delivery_type': '', }), }, - description: 'https://sentry-test-site.io/path/to/style.css', + description: 'https://sentry-test-site.example/path/to/style.css', op: 'resource.link', origin: 'auto.resource.browser.metrics', parent_span_id: spanId, @@ -133,7 +133,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'network.protocol.version': 'unknown', 'sentry.op': 'resource.script', 'sentry.origin': 'auto.resource.browser.metrics', - 'server.address': 'sentry-test-site.io', + 'server.address': 'sentry-test-site.example', 'url.same_origin': false, 'url.scheme': 'https', ...(!isWebkitRun && { @@ -141,7 +141,7 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca 'http.response_delivery_type': '', }), }, - description: 'https://sentry-test-site.io/path/to/script.js', + description: 'https://sentry-test-site.example/path/to/script.js', op: 'resource.script', origin: 'auto.resource.browser.metrics', parent_span_id: spanId, diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/template.html b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/template.html index 5aec645c547e..ef5d3bac0018 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-lcp/template.html @@ -5,6 +5,6 @@
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals/template.html b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals/template.html index d3dbaa738286..75131e14a681 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals/template.html +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals/template.html @@ -5,7 +5,7 @@
- + diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/init.js index 478efd583377..3cbcaa4fe152 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/init.js @@ -4,5 +4,5 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/subject.js index 72eed0642fe4..482a738009c2 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/subject.js @@ -1,5 +1,5 @@ -fetch('http://sentry-test-site.io/0').then( - fetch('http://sentry-test-site.io/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( - fetch('http://sentry-test-site.io/2'), +fetch('http://sentry-test-site.example/0').then( + fetch('http://sentry-test-site.example/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( + fetch('http://sentry-test-site.example/2'), ), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/test.ts index a7633b76d244..5f209ccfb876 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-no-tracing/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/init.js index 48c60d220ce8..5e9c86105ae7 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], tracesSampleRate: 0, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/subject.js index 72eed0642fe4..482a738009c2 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/subject.js @@ -1,5 +1,5 @@ -fetch('http://sentry-test-site.io/0').then( - fetch('http://sentry-test-site.io/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( - fetch('http://sentry-test-site.io/2'), +fetch('http://sentry-test-site.example/0').then( + fetch('http://sentry-test-site.example/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( + fetch('http://sentry-test-site.example/2'), ), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/test.ts index 58c9fde27cf4..db14ab1faa11 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-unsampled/test.ts @@ -13,7 +13,7 @@ sentryTest('should attach `sentry-trace` header to unsampled fetch requests', as const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/init.js index 8f1eaf6850c9..69d4c5781782 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], // no tracesSampleRate defined means TWP mode }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/subject.js index 72eed0642fe4..482a738009c2 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/subject.js @@ -1,5 +1,5 @@ -fetch('http://sentry-test-site.io/0').then( - fetch('http://sentry-test-site.io/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( - fetch('http://sentry-test-site.io/2'), +fetch('http://sentry-test-site.example/0').then( + fetch('http://sentry-test-site.example/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( + fetch('http://sentry-test-site.example/2'), ), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/test.ts index aad914df3594..c86595cfbf94 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-tracing-without-performance/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/init.js index 432f6f702acb..b2280b70e307 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], tracesSampleRate: 1, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/subject.js index 0cb97d9da52a..3f664d11c688 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/subject.js @@ -1,4 +1,4 @@ -const request = new Request('http://sentry-test-site.io/api/test/', { +const request = new Request('http://sentry-test-site.example/api/test/', { headers: { foo: '11' }, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/test.ts index c8fb53fdcf08..26cf5f6e6f33 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-request/test.ts @@ -10,7 +10,7 @@ sentryTest( sentryTest.skip(); } - const requestPromise = page.waitForRequest('http://sentry-test-site.io/api/test/'); + const requestPromise = page.waitForRequest('http://sentry-test-site.example/api/test/'); const url = await getLocalTestUrl({ testDir: __dirname }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/fetch/subject.js index 72eed0642fe4..482a738009c2 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch/subject.js @@ -1,5 +1,5 @@ -fetch('http://sentry-test-site.io/0').then( - fetch('http://sentry-test-site.io/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( - fetch('http://sentry-test-site.io/2'), +fetch('http://sentry-test-site.example/0').then( + fetch('http://sentry-test-site.example/1', { headers: { 'X-Test-Header': 'existing-header' } }).then( + fetch('http://sentry-test-site.example/2'), ), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/fetch/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/fetch/test.ts index 161dcef92191..9e2a2dc9bd8b 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/fetch/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/fetch/test.ts @@ -11,7 +11,7 @@ sentryTest('should create spans for fetch requests', async ({ getLocalTestUrl, p sentryTest.skip(); } - await page.route('http://sentry-test-site.io/*', route => route.fulfill({ body: 'ok' })); + await page.route('http://sentry-test-site.example/*', route => route.fulfill({ body: 'ok' })); const url = await getLocalTestUrl({ testDir: __dirname }); @@ -24,7 +24,7 @@ sentryTest('should create spans for fetch requests', async ({ getLocalTestUrl, p requestSpans?.forEach((span, index) => expect(span).toMatchObject({ - description: `GET http://sentry-test-site.io/${index}`, + description: `GET http://sentry-test-site.example/${index}`, parent_span_id: tracingEvent.contexts?.trace?.span_id, span_id: expect.stringMatching(/[a-f0-9]{16}/), start_timestamp: expect.any(Number), @@ -32,9 +32,9 @@ sentryTest('should create spans for fetch requests', async ({ getLocalTestUrl, p trace_id: tracingEvent.contexts?.trace?.trace_id, data: { 'http.method': 'GET', - 'http.url': `http://sentry-test-site.io/${index}`, - url: `http://sentry-test-site.io/${index}`, - 'server.address': 'sentry-test-site.io', + 'http.url': `http://sentry-test-site.example/${index}`, + url: `http://sentry-test-site.example/${index}`, + 'server.address': 'sentry-test-site.example', type: 'fetch', }, }), @@ -46,14 +46,14 @@ sentryTest('should attach `sentry-trace` header to fetch requests', async ({ get sentryTest.skip(); } - await page.route('http://sentry-test-site.io/*', route => route.fulfill({ body: 'ok' })); + await page.route('http://sentry-test-site.example/*', route => route.fulfill({ body: 'ok' })); const url = await getLocalTestUrl({ testDir: __dirname }); const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/init.js index e867531e7f37..439f60ae6dc4 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/init.js @@ -5,7 +5,7 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], tracesSampleRate: 1, autoSessionTracking: false, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/init.js index 478efd583377..3cbcaa4fe152 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/init.js @@ -4,5 +4,5 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/subject.js index 8077b68b83a1..9c584bf743cb 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/subject.js @@ -1,12 +1,12 @@ const xhr_1 = new XMLHttpRequest(); -xhr_1.open('GET', 'http://sentry-test-site.io/0'); +xhr_1.open('GET', 'http://sentry-test-site.example/0'); xhr_1.send(); const xhr_2 = new XMLHttpRequest(); -xhr_2.open('GET', 'http://sentry-test-site.io/1'); +xhr_2.open('GET', 'http://sentry-test-site.example/1'); xhr_2.setRequestHeader('X-Test-Header', 'existing-header'); xhr_2.send(); const xhr_3 = new XMLHttpRequest(); -xhr_3.open('GET', 'http://sentry-test-site.io/2'); +xhr_3.open('GET', 'http://sentry-test-site.example/2'); xhr_3.send(); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/test.ts index a7633b76d244..5f209ccfb876 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-no-tracing/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/init.js index 48c60d220ce8..5e9c86105ae7 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], tracesSampleRate: 0, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/subject.js index 8077b68b83a1..9c584bf743cb 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/subject.js @@ -1,12 +1,12 @@ const xhr_1 = new XMLHttpRequest(); -xhr_1.open('GET', 'http://sentry-test-site.io/0'); +xhr_1.open('GET', 'http://sentry-test-site.example/0'); xhr_1.send(); const xhr_2 = new XMLHttpRequest(); -xhr_2.open('GET', 'http://sentry-test-site.io/1'); +xhr_2.open('GET', 'http://sentry-test-site.example/1'); xhr_2.setRequestHeader('X-Test-Header', 'existing-header'); xhr_2.send(); const xhr_3 = new XMLHttpRequest(); -xhr_3.open('GET', 'http://sentry-test-site.io/2'); +xhr_3.open('GET', 'http://sentry-test-site.example/2'); xhr_3.send(); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/test.ts index 6e4104050f55..53254dae0fa9 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-unsampled/test.ts @@ -13,7 +13,7 @@ sentryTest('should attach `sentry-trace` header to unsampled xhr requests', asyn const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/init.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/init.js index d40203e39b1a..11f91541bb18 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/init.js @@ -5,5 +5,5 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/subject.js index 8077b68b83a1..9c584bf743cb 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/subject.js @@ -1,12 +1,12 @@ const xhr_1 = new XMLHttpRequest(); -xhr_1.open('GET', 'http://sentry-test-site.io/0'); +xhr_1.open('GET', 'http://sentry-test-site.example/0'); xhr_1.send(); const xhr_2 = new XMLHttpRequest(); -xhr_2.open('GET', 'http://sentry-test-site.io/1'); +xhr_2.open('GET', 'http://sentry-test-site.example/1'); xhr_2.setRequestHeader('X-Test-Header', 'existing-header'); xhr_2.send(); const xhr_3 = new XMLHttpRequest(); -xhr_3.open('GET', 'http://sentry-test-site.io/2'); +xhr_3.open('GET', 'http://sentry-test-site.example/2'); xhr_3.send(); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/test.ts index 210f1dd9cadc..3337fc988723 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr-tracing-without-performance/test.ts @@ -15,7 +15,7 @@ sentryTest( const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr/subject.js b/dev-packages/browser-integration-tests/suites/tracing/request/xhr/subject.js index 8077b68b83a1..9c584bf743cb 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr/subject.js @@ -1,12 +1,12 @@ const xhr_1 = new XMLHttpRequest(); -xhr_1.open('GET', 'http://sentry-test-site.io/0'); +xhr_1.open('GET', 'http://sentry-test-site.example/0'); xhr_1.send(); const xhr_2 = new XMLHttpRequest(); -xhr_2.open('GET', 'http://sentry-test-site.io/1'); +xhr_2.open('GET', 'http://sentry-test-site.example/1'); xhr_2.setRequestHeader('X-Test-Header', 'existing-header'); xhr_2.send(); const xhr_3 = new XMLHttpRequest(); -xhr_3.open('GET', 'http://sentry-test-site.io/2'); +xhr_3.open('GET', 'http://sentry-test-site.example/2'); xhr_3.send(); diff --git a/dev-packages/browser-integration-tests/suites/tracing/request/xhr/test.ts b/dev-packages/browser-integration-tests/suites/tracing/request/xhr/test.ts index bd880160a067..7ad30a83b54c 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/request/xhr/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/request/xhr/test.ts @@ -9,7 +9,7 @@ sentryTest('should create spans for XHR requests', async ({ getLocalTestUrl, pag sentryTest.skip(); } - await page.route('http://sentry-test-site.io/*', route => route.fulfill({ body: 'ok' })); + await page.route('http://sentry-test-site.example/*', route => route.fulfill({ body: 'ok' })); const url = await getLocalTestUrl({ testDir: __dirname }); @@ -20,7 +20,7 @@ sentryTest('should create spans for XHR requests', async ({ getLocalTestUrl, pag requestSpans?.forEach((span, index) => expect(span).toMatchObject({ - description: `GET http://sentry-test-site.io/${index}`, + description: `GET http://sentry-test-site.example/${index}`, parent_span_id: eventData.contexts?.trace?.span_id, span_id: expect.stringMatching(/[a-f0-9]{16}/), start_timestamp: expect.any(Number), @@ -28,9 +28,9 @@ sentryTest('should create spans for XHR requests', async ({ getLocalTestUrl, pag trace_id: eventData.contexts?.trace?.trace_id, data: { 'http.method': 'GET', - 'http.url': `http://sentry-test-site.io/${index}`, - url: `http://sentry-test-site.io/${index}`, - 'server.address': 'sentry-test-site.io', + 'http.url': `http://sentry-test-site.example/${index}`, + url: `http://sentry-test-site.example/${index}`, + 'server.address': 'sentry-test-site.example', type: 'xhr', }, }), @@ -47,7 +47,7 @@ sentryTest('should attach `sentry-trace` header to XHR requests', async ({ getLo const requests = ( await Promise.all([ page.goto(url), - Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.io/${idx}`))), + Promise.all([0, 1, 2].map(idx => page.waitForRequest(`http://sentry-test-site.example/${idx}`))), ]) )[1]; diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/init.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/init.js index 945eee35f42d..30317eda63ef 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/init.js @@ -7,6 +7,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration(), feedbackIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], tracesSampleRate: 1, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/navigation/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/navigation/test.ts index 93e02106481c..2c3749550eab 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/navigation/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/navigation/test.ts @@ -201,7 +201,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/**', route => { + await page.route('http://sentry-test-site.example/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -217,7 +217,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.example/*'); await page.goto(`${url}#foo`); await page.locator('#fetchBtn').click(); const [[navigationEvent, navigationTraceHeader], request] = await Promise.all([ @@ -264,7 +264,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/**', route => { + await page.route('http://sentry-test-site.example/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -280,7 +280,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.example/*'); await page.goto(`${url}#foo`); await page.locator('#xhrBtn').click(); const [[navigationEvent, navigationTraceHeader], request] = await Promise.all([ diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/subject.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/subject.js index 5ef7161b6b1d..bfaa54db4d01 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/subject.js @@ -5,12 +5,12 @@ errorBtn.addEventListener('click', () => { const fetchBtn = document.getElementById('fetchBtn'); fetchBtn.addEventListener('click', async () => { - await fetch('http://sentry-test-site.io'); + await fetch('http://sentry-test-site.example'); }); const xhrBtn = document.getElementById('xhrBtn'); xhrBtn.addEventListener('click', () => { const xhr = new XMLHttpRequest(); - xhr.open('GET', 'http://sentry-test-site.io'); + xhr.open('GET', 'http://sentry-test-site.example'); xhr.send(); }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/test.ts index fb28601b747d..18acb6d9af75 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload-meta/test.ts @@ -207,7 +207,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/**', route => { + await page.route('http://sentry-test-site.example/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -220,7 +220,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.example/*'); await page.goto(url); await page.locator('#fetchBtn').click(); const [[pageloadEvent, pageloadTraceHeader], request] = await Promise.all([pageloadEventPromise, requestPromise]); @@ -259,7 +259,7 @@ sentryTest( sentryTest.skip(); } - await page.route('http://sentry-test-site.io/**', route => { + await page.route('http://sentry-test-site.example/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -274,7 +274,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.example/*'); await page.goto(url); await page.locator('#xhrBtn').click(); const [[pageloadEvent, pageloadTraceHeader], request] = await Promise.all([pageloadEventPromise, requestPromise]); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload/test.ts index b3702e65842e..d7ada2cce6d8 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/pageload/test.ts @@ -197,7 +197,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/**', route => { + await page.route('http://sentry-test-site.example/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -210,7 +210,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.example/*'); await page.goto(url); await page.locator('#fetchBtn').click(); const [[pageloadEvent, pageloadTraceHeader], request] = await Promise.all([pageloadEventPromise, requestPromise]); @@ -254,7 +254,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/**', route => { + await page.route('http://sentry-test-site.example/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -267,7 +267,7 @@ sentryTest( undefined, eventAndTraceHeaderRequestParser, ); - const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.example/*'); await page.goto(url); await page.locator('#xhrBtn').click(); const [[pageloadEvent, pageloadTraceHeader], request] = await Promise.all([pageloadEventPromise, requestPromise]); @@ -311,7 +311,7 @@ sentryTest( // const url = await getLocalTestUrl({ testDir: __dirname }); -// await page.route('http://sentry-test-site.io/**', route => { +// await page.route('http://sentry-test-site.example/**', route => { // return route.fulfill({ // status: 200, // contentType: 'application/json', @@ -346,7 +346,7 @@ sentryTest( // trace_id: pageloadTraceId, // }); -// const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); +// const requestPromise = page.waitForRequest('http://sentry-test-site.example/*'); // await page.locator('#xhrBtn').click(); // const request = await requestPromise; @@ -369,7 +369,7 @@ sentryTest( // const url = await getLocalTestUrl({ testDir: __dirname }); -// await page.route('http://sentry-test-site.io/**', route => { +// await page.route('http://sentry-test-site.example/**', route => { // return route.fulfill({ // status: 200, // contentType: 'application/json', @@ -406,7 +406,7 @@ sentryTest( // trace_id: pageloadTraceId, // }); -// const requestPromise = page.waitForRequest('http://sentry-test-site.io/**'); +// const requestPromise = page.waitForRequest('http://sentry-test-site.example/**'); // const customTransactionEventPromise = getFirstSentryEnvelopeRequest( // page, // undefined, diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/subject.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/subject.js index 003075844c8c..3bb1e489ccb6 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/subject.js @@ -2,7 +2,7 @@ const newTraceBtn = document.getElementById('newTrace'); newTraceBtn.addEventListener('click', async () => { Sentry.startNewTrace(() => { Sentry.startSpan({ op: 'ui.interaction.click', name: 'new-trace' }, async () => { - await fetch('http://sentry-test-site.io'); + await fetch('http://sentry-test-site.example'); }); }); }); @@ -10,6 +10,6 @@ newTraceBtn.addEventListener('click', async () => { const oldTraceBtn = document.getElementById('oldTrace'); oldTraceBtn.addEventListener('click', async () => { Sentry.startSpan({ op: 'ui.interaction.click', name: 'old-trace' }, async () => { - await fetch('http://sentry-test-site.io'); + await fetch('http://sentry-test-site.example'); }); }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/test.ts index a26a9ec54dff..6f5ede5eccf8 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/startNewTrace/test.ts @@ -17,7 +17,7 @@ sentryTest( const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/**', route => { + await page.route('http://sentry-test-site.example/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/subject.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/subject.js index 00e6d7e2a95e..eead800a75a5 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/subject.js @@ -5,19 +5,19 @@ errorBtn.addEventListener('click', () => { const fetchBtn = document.getElementById('fetchBtn'); fetchBtn.addEventListener('click', async () => { - await fetch('http://sentry-test-site.io'); + await fetch('http://sentry-test-site.example'); }); const xhrBtn = document.getElementById('xhrBtn'); xhrBtn.addEventListener('click', () => { const xhr = new XMLHttpRequest(); - xhr.open('GET', 'http://sentry-test-site.io'); + xhr.open('GET', 'http://sentry-test-site.example'); xhr.send(); }); const spanAndFetchBtn = document.getElementById('spanAndFetchBtn'); spanAndFetchBtn.addEventListener('click', () => { Sentry.startSpan({ name: 'custom-root-span' }, async () => { - await fetch('http://sentry-test-site.io'); + await fetch('http://sentry-test-site.example'); }); }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/init.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/init.js index 432f6f702acb..b2280b70e307 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/init.js @@ -5,6 +5,6 @@ window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], tracesSampleRate: 1, }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js index 271c6dffd260..d128ec943af5 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/subject.js @@ -8,11 +8,11 @@ fetchPojo.addEventListener('click', () => { // Make two fetch requests that reuse the same fetch object Sentry.startSpan({ name: 'does-not-matter-1' }, () => - fetch('http://sentry-test-site.io/fetch-pojo', fetchOptions) + fetch('http://sentry-test-site.example/fetch-pojo', fetchOptions) .then(res => res.text()) .then(() => Sentry.startSpan({ name: 'does-not-matter-2' }, () => - fetch('http://sentry-test-site.io/fetch-pojo', fetchOptions), + fetch('http://sentry-test-site.example/fetch-pojo', fetchOptions), ), ), ); @@ -28,11 +28,11 @@ fetchArray.addEventListener('click', () => { // Make two fetch requests that reuse the same fetch object Sentry.startSpan({ name: 'does-not-matter-1' }, () => - fetch('http://sentry-test-site.io/fetch-array', fetchOptions) + fetch('http://sentry-test-site.example/fetch-array', fetchOptions) .then(res => res.text()) .then(() => Sentry.startSpan({ name: 'does-not-matter-2' }, () => - fetch('http://sentry-test-site.io/fetch-array', fetchOptions), + fetch('http://sentry-test-site.example/fetch-array', fetchOptions), ), ), ); @@ -48,11 +48,11 @@ fetchHeaders.addEventListener('click', () => { // Make two fetch requests that reuse the same fetch object Sentry.startSpan({ name: 'does-not-matter-1' }, () => - fetch('http://sentry-test-site.io/fetch-headers', fetchOptions) + fetch('http://sentry-test-site.example/fetch-headers', fetchOptions) .then(res => res.text()) .then(() => Sentry.startSpan({ name: 'does-not-matter-2' }, () => - fetch('http://sentry-test-site.io/fetch-headers', fetchOptions), + fetch('http://sentry-test-site.example/fetch-headers', fetchOptions), ), ), ); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts index f2b07cc927e7..3393c4e251dd 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts @@ -50,18 +50,18 @@ sentryTest( await page.goto(url); await sentryTest.step('fetch with POJO', () => - assertRequests({ page, buttonSelector: '#fetchPojo', requestMatcher: 'http://sentry-test-site.io/fetch-pojo' }), + assertRequests({ page, buttonSelector: '#fetchPojo', requestMatcher: 'http://sentry-test-site.example/fetch-pojo' }), ); await sentryTest.step('fetch with array', () => - assertRequests({ page, buttonSelector: '#fetchArray', requestMatcher: 'http://sentry-test-site.io/fetch-array' }), + assertRequests({ page, buttonSelector: '#fetchArray', requestMatcher: 'http://sentry-test-site.example/fetch-array' }), ); await sentryTest.step('fetch with Headers instance', () => assertRequests({ page, buttonSelector: '#fetchHeaders', - requestMatcher: 'http://sentry-test-site.io/fetch-headers', + requestMatcher: 'http://sentry-test-site.example/fetch-headers', }), ); }, diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/init.js b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/init.js index 68ea0b16818a..94222159056c 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/init.js +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/init.js @@ -6,5 +6,5 @@ Sentry.init({ // in browser TwP means not setting tracesSampleRate but adding browserTracingIntegration, dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], - tracePropagationTargets: ['http://sentry-test-site.io'], + tracePropagationTargets: ['http://sentry-test-site.example'], }); diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/test.ts index 40b2ea0f816e..686f65227aa7 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/tracing-without-performance/test.ts @@ -105,7 +105,7 @@ sentryTest('outgoing fetch requests have new traceId after navigation', async ({ const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/**', route => { + await page.route('http://sentry-test-site.example/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -115,7 +115,7 @@ sentryTest('outgoing fetch requests have new traceId after navigation', async ({ await page.goto(url); - const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.example/*'); await page.locator('#fetchBtn').click(); const request = await requestPromise; const headers = request.headers(); @@ -126,7 +126,7 @@ sentryTest('outgoing fetch requests have new traceId after navigation', async ({ await page.goto(`${url}#navigation`); - const requestPromise2 = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise2 = page.waitForRequest('http://sentry-test-site.example/*'); await page.locator('#fetchBtn').click(); const request2 = await requestPromise2; const headers2 = request2.headers(); @@ -147,7 +147,7 @@ sentryTest('outgoing XHR requests have new traceId after navigation', async ({ g const url = await getLocalTestUrl({ testDir: __dirname }); - await page.route('http://sentry-test-site.io/**', route => { + await page.route('http://sentry-test-site.example/**', route => { return route.fulfill({ status: 200, contentType: 'application/json', @@ -157,7 +157,7 @@ sentryTest('outgoing XHR requests have new traceId after navigation', async ({ g await page.goto(url); - const requestPromise = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise = page.waitForRequest('http://sentry-test-site.example/*'); await page.locator('#xhrBtn').click(); const request = await requestPromise; const headers = request.headers(); @@ -168,7 +168,7 @@ sentryTest('outgoing XHR requests have new traceId after navigation', async ({ g await page.goto(`${url}#navigation`); - const requestPromise2 = page.waitForRequest('http://sentry-test-site.io/*'); + const requestPromise2 = page.waitForRequest('http://sentry-test-site.example/*'); await page.locator('#xhrBtn').click(); const request2 = await requestPromise2; const headers2 = request2.headers(); diff --git a/dev-packages/browser-integration-tests/utils/replayEventTemplates.ts b/dev-packages/browser-integration-tests/utils/replayEventTemplates.ts index b618eff9b20d..56ff33f878fa 100644 --- a/dev-packages/browser-integration-tests/utils/replayEventTemplates.ts +++ b/dev-packages/browser-integration-tests/utils/replayEventTemplates.ts @@ -190,7 +190,7 @@ export const expectedFPPerformanceSpan = { export const expectedFetchPerformanceSpan = { op: 'resource.fetch', - description: 'https://sentry-test-site.io', + description: 'https://sentry-test-site.example', startTimestamp: expect.any(Number), endTimestamp: expect.any(Number), data: { @@ -215,7 +215,7 @@ export const expectedFetchPerformanceSpan = { export const expectedXHRPerformanceSpan = { op: 'resource.xhr', - description: 'https://sentry-test-site.io', + description: 'https://sentry-test-site.example', startTimestamp: expect.any(Number), endTimestamp: expect.any(Number), data: { From 160780e2506cb362fc5af705cd4db5f15c0afb9e Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Fri, 7 Feb 2025 08:29:26 +0100 Subject: [PATCH 4/4] fixes --- .../tracing/metrics/pageload-resource-spans/test.ts | 6 +++++- .../trace-lifetime/trace-header-merging/test.ts | 12 ++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts index 52b4051a5524..f30083295665 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/metrics/pageload-resource-spans/test.ts @@ -58,7 +58,11 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca const hasCdnBundle = (process.env.PW_BUNDLE || '').startsWith('bundle'); - const expectedScripts = ['/init.bundle.js', '/subject.bundle.js', 'https://sentry-test-site.example/path/to/script.js']; + const expectedScripts = [ + '/init.bundle.js', + '/subject.bundle.js', + 'https://sentry-test-site.example/path/to/script.js', + ]; if (hasCdnBundle) { expectedScripts.unshift('/cdn.bundle.js'); } diff --git a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts index 3393c4e251dd..8280f443bc3f 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/trace-lifetime/trace-header-merging/test.ts @@ -50,11 +50,19 @@ sentryTest( await page.goto(url); await sentryTest.step('fetch with POJO', () => - assertRequests({ page, buttonSelector: '#fetchPojo', requestMatcher: 'http://sentry-test-site.example/fetch-pojo' }), + assertRequests({ + page, + buttonSelector: '#fetchPojo', + requestMatcher: 'http://sentry-test-site.example/fetch-pojo', + }), ); await sentryTest.step('fetch with array', () => - assertRequests({ page, buttonSelector: '#fetchArray', requestMatcher: 'http://sentry-test-site.example/fetch-array' }), + assertRequests({ + page, + buttonSelector: '#fetchArray', + requestMatcher: 'http://sentry-test-site.example/fetch-array', + }), ); await sentryTest.step('fetch with Headers instance', () =>