From 42c2490f2db8643592b7ef446743bd5f5df4dd45 Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Fri, 7 Aug 2026 22:53:48 +0200 Subject: [PATCH] ref(browser): Remove deprecated `trackFetchStreamPerformance` flag Removes the deprecated `trackFetchStreamPerformance` option from `browserTracingIntegration`. Streamed fetch tracking is now opt-in via `fetchStreamPerformanceIntegration()` added to the `integrations` array. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../src/index.tsx | 1 - .../react-router-6/src/index.tsx | 2 +- .../react-router-7-cross-usage/src/index.tsx | 1 - .../react-router-7-lazy-routes/src/index.tsx | 1 - .../react-router-7-spa-streaming/src/main.tsx | 1 - .../react-router-7-spa/src/main.tsx | 1 - .../react-router-8-cross-usage/src/index.tsx | 1 - .../react-router-8-spa/src/main.tsx | 1 - .../src/tracing/browserTracingIntegration.ts | 18 ------------------ packages/browser/src/tracing/request.ts | 16 ---------------- 10 files changed, 1 insertion(+), 42 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/src/index.tsx index 31f7765f5374..aca20a716203 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/src/index.tsx @@ -26,7 +26,6 @@ Sentry.init({ useNavigationType, createRoutesFromChildren, matchRoutes, - trackFetchStreamPerformance: true, }), replay, ], diff --git a/dev-packages/e2e-tests/test-applications/react-router-6/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-6/src/index.tsx index d3836730ce39..b569aa9aedd1 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-6/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-6/src/index.tsx @@ -28,8 +28,8 @@ Sentry.init({ useNavigationType, createRoutesFromChildren, matchRoutes, - trackFetchStreamPerformance: true, }), + Sentry.fetchStreamPerformanceIntegration(), replay, ], // We recommend adjusting this value in production, or using tracesSampler diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/index.tsx index d896b37dc53c..fe7c390d792a 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/index.tsx @@ -28,7 +28,6 @@ Sentry.init({ useNavigationType, createRoutesFromChildren, matchRoutes, - trackFetchStreamPerformance: true, }), replay, ], diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src/index.tsx index 6ba42186ed07..f51e5f9dd5a6 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src/index.tsx @@ -88,7 +88,6 @@ Sentry.init({ useNavigationType, createRoutesFromChildren, matchRoutes, - trackFetchStreamPerformance: true, enableAsyncRouteHandlers: true, lazyRouteTimeout: runtimeConfig.lazyRouteTimeout, idleTimeout: runtimeConfig.idleTimeout, diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-spa-streaming/src/main.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-spa-streaming/src/main.tsx index b3542ff27301..209d68af757c 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-spa-streaming/src/main.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-spa-streaming/src/main.tsx @@ -26,7 +26,6 @@ Sentry.init({ useNavigationType, createRoutesFromChildren, matchRoutes, - trackFetchStreamPerformance: true, }), Sentry.spanStreamingIntegration(), replay, diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-spa/src/main.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-spa/src/main.tsx index 6c6baad97fc2..eb0b44122b62 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-spa/src/main.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-spa/src/main.tsx @@ -28,7 +28,6 @@ Sentry.init({ useNavigationType, createRoutesFromChildren, matchRoutes, - trackFetchStreamPerformance: true, }), replay, ], diff --git a/dev-packages/e2e-tests/test-applications/react-router-8-cross-usage/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-8-cross-usage/src/index.tsx index 26d8dc188385..dd76f1229e98 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-8-cross-usage/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-8-cross-usage/src/index.tsx @@ -28,7 +28,6 @@ Sentry.init({ useNavigationType, createRoutesFromChildren, matchRoutes, - trackFetchStreamPerformance: true, }), replay, ], diff --git a/dev-packages/e2e-tests/test-applications/react-router-8-spa/src/main.tsx b/dev-packages/e2e-tests/test-applications/react-router-8-spa/src/main.tsx index 6c6baad97fc2..eb0b44122b62 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-8-spa/src/main.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-8-spa/src/main.tsx @@ -28,7 +28,6 @@ Sentry.init({ useNavigationType, createRoutesFromChildren, matchRoutes, - trackFetchStreamPerformance: true, }), replay, ], diff --git a/packages/browser/src/tracing/browserTracingIntegration.ts b/packages/browser/src/tracing/browserTracingIntegration.ts index d5094a672828..6ff72e69972b 100644 --- a/packages/browser/src/tracing/browserTracingIntegration.ts +++ b/packages/browser/src/tracing/browserTracingIntegration.ts @@ -47,7 +47,6 @@ import { import { DEBUG_BUILD } from '../debug-build'; import { filterCollectedUrl } from '@sentry/core'; import { getHttpRequestData, WINDOW } from '../helpers'; -import { fetchStreamPerformanceIntegration } from '../integrations/fetchStreamPerformance'; import { WEB_VITALS_INTEGRATION_NAME, webVitalsIntegration } from '../integrations/webVitals'; import { registerBackgroundTabDetection } from './backgroundtab'; import { linkTraces } from './linkedTraces'; @@ -167,17 +166,6 @@ export interface BrowserTracingOptions { */ traceXHR: boolean; - /** - * Flag to disable tracking of long-lived streams, like server-sent events (SSE) via fetch. - * Do not enable this in case you have live streams or very long running streams. - * - * Default: false - * - * @deprecated Use `fetchStreamPerformanceIntegration()` instead. Add it to your `integrations` array - * to track the duration of streamed fetch response bodies. - */ - trackFetchStreamPerformance: boolean; - /** * If true, Sentry will capture http timings and add them to the corresponding http spans. * @@ -354,8 +342,6 @@ export const browserTracingIntegration = ((options: Partial