From 591833505f30baf17f2c5dc8e22839455b0a8d29 Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 21 Jun 2024 10:23:30 -0400 Subject: [PATCH] Adapt to breaking changes --- src/initializer.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/initializer.tsx b/src/initializer.tsx index e28c21a9..1f9f6c74 100644 --- a/src/initializer.tsx +++ b/src/initializer.tsx @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { BrowserTracing } from "@sentry/browser"; import i18n from "i18next"; import { initReactI18next } from "react-i18next"; import LanguageDetector from "i18next-browser-languagedetector"; @@ -160,10 +159,7 @@ export class Initializer { dsn: Config.get().sentry?.DSN, environment: Config.get().sentry?.environment, integrations: [ - new BrowserTracing({ - routingInstrumentation: - Sentry.reactRouterV5Instrumentation(history), - }), + Sentry.reactRouterV5BrowserTracingIntegration({ history }), ], tracesSampleRate: 1.0, });