From c48dd54ac6cc2addae4ae1a1b5743735765b3f2f Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Tue, 14 Oct 2025 14:29:53 +0200 Subject: [PATCH 1/7] fix(test): Exclude localhost requests from HTTP span count --- .../e2e/captureSpaceflightNewsScreenTransaction.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts b/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts index 2bdd30486e..501d9442e8 100644 --- a/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts +++ b/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts @@ -119,7 +119,9 @@ describe('Capture Spaceflight News Screen Transaction', () => { console.log(spans); const httpSpans = spans?.filter( - span => span.data?.['sentry.op'] === 'http.client', + span => + span.data?.['sentry.op'] === 'http.client' && + span.data?.['server.address'] === 'api.spaceflightnewsapi.net' ); expect(httpSpans).toHaveLength(2); }); From 3cf86e4726abbb8d2b4a15faa6338af7e2e1ad57 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 15 Oct 2025 12:06:05 +0200 Subject: [PATCH 2/7] Revert "fix(test): Exclude localhost requests from HTTP span count" This reverts commit c48dd54ac6cc2addae4ae1a1b5743735765b3f2f. --- .../e2e/captureSpaceflightNewsScreenTransaction.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts b/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts index 501d9442e8..2bdd30486e 100644 --- a/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts +++ b/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts @@ -119,9 +119,7 @@ describe('Capture Spaceflight News Screen Transaction', () => { console.log(spans); const httpSpans = spans?.filter( - span => - span.data?.['sentry.op'] === 'http.client' && - span.data?.['server.address'] === 'api.spaceflightnewsapi.net' + span => span.data?.['sentry.op'] === 'http.client', ); expect(httpSpans).toHaveLength(2); }); From ba431c633be6d39dd990b3c421a05363293d6ba5 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 15 Oct 2025 12:06:45 +0200 Subject: [PATCH 3/7] Disable spotlight in the sample --- samples/react-native/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/react-native/src/App.tsx b/samples/react-native/src/App.tsx index bf3dcf0dab..fca0fe3f64 100644 --- a/samples/react-native/src/App.tsx +++ b/samples/react-native/src/App.tsx @@ -161,7 +161,7 @@ Sentry.init({ replaysOnErrorSampleRate: 1.0, ignoreErrors: ['should', /(.)*2(.)*/], replaysSessionQuality: 'medium', // default - spotlight: true, + spotlight: false, // This should be disabled when manually initializing the native SDK // Note that options from JS are not passed to the native SDKs when initialized manually autoInitializeNativeSdk: true, From aec7a98c0d60f2a31b95e12052576b5f7725bc03 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 15 Oct 2025 13:37:31 +0200 Subject: [PATCH 4/7] Revert "Disable spotlight in the sample" This reverts commit ba431c633be6d39dd990b3c421a05363293d6ba5. --- samples/react-native/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/react-native/src/App.tsx b/samples/react-native/src/App.tsx index fca0fe3f64..bf3dcf0dab 100644 --- a/samples/react-native/src/App.tsx +++ b/samples/react-native/src/App.tsx @@ -161,7 +161,7 @@ Sentry.init({ replaysOnErrorSampleRate: 1.0, ignoreErrors: ['should', /(.)*2(.)*/], replaysSessionQuality: 'medium', // default - spotlight: false, + spotlight: true, // This should be disabled when manually initializing the native SDK // Note that options from JS are not passed to the native SDKs when initialized manually autoInitializeNativeSdk: true, From 4d20d44d54751aac0331bc75dff69771361deda0 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 15 Oct 2025 13:37:57 +0200 Subject: [PATCH 5/7] Reapply "fix(test): Exclude localhost requests from HTTP span count" This reverts commit 3cf86e4726abbb8d2b4a15faa6338af7e2e1ad57. --- .../e2e/captureSpaceflightNewsScreenTransaction.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts b/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts index 2bdd30486e..501d9442e8 100644 --- a/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts +++ b/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts @@ -119,7 +119,9 @@ describe('Capture Spaceflight News Screen Transaction', () => { console.log(spans); const httpSpans = spans?.filter( - span => span.data?.['sentry.op'] === 'http.client', + span => + span.data?.['sentry.op'] === 'http.client' && + span.data?.['server.address'] === 'api.spaceflightnewsapi.net' ); expect(httpSpans).toHaveLength(2); }); From e8f08ae601dc9612f2f3b2231a14e73de294da5d Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 16 Oct 2025 14:12:04 +0200 Subject: [PATCH 6/7] Revert "Reapply "fix(test): Exclude localhost requests from HTTP span count"" This reverts commit 4d20d44d54751aac0331bc75dff69771361deda0. --- .../e2e/captureSpaceflightNewsScreenTransaction.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts b/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts index 501d9442e8..2bdd30486e 100644 --- a/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts +++ b/samples/react-native/e2e/captureSpaceflightNewsScreenTransaction.test.ts @@ -119,9 +119,7 @@ describe('Capture Spaceflight News Screen Transaction', () => { console.log(spans); const httpSpans = spans?.filter( - span => - span.data?.['sentry.op'] === 'http.client' && - span.data?.['server.address'] === 'api.spaceflightnewsapi.net' + span => span.data?.['sentry.op'] === 'http.client', ); expect(httpSpans).toHaveLength(2); }); From e547ff542f5d61be54be4237bb27d1273bc787f2 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 16 Oct 2025 14:12:17 +0200 Subject: [PATCH 7/7] Reapply "Disable spotlight in the sample" This reverts commit aec7a98c0d60f2a31b95e12052576b5f7725bc03. --- samples/react-native/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/react-native/src/App.tsx b/samples/react-native/src/App.tsx index bf3dcf0dab..fca0fe3f64 100644 --- a/samples/react-native/src/App.tsx +++ b/samples/react-native/src/App.tsx @@ -161,7 +161,7 @@ Sentry.init({ replaysOnErrorSampleRate: 1.0, ignoreErrors: ['should', /(.)*2(.)*/], replaysSessionQuality: 'medium', // default - spotlight: true, + spotlight: false, // This should be disabled when manually initializing the native SDK // Note that options from JS are not passed to the native SDKs when initialized manually autoInitializeNativeSdk: true,