From b0559a6aa76c58f935f9870c2ff21b2fa382b154 Mon Sep 17 00:00:00 2001 From: Azanul Date: Tue, 28 May 2024 09:17:52 +0530 Subject: [PATCH] fix: deprecated browser tracing Signed-off-by: Azanul --- dashboard/components/layout/Layout.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dashboard/components/layout/Layout.tsx b/dashboard/components/layout/Layout.tsx index 61986611e..6f0e3cdda 100644 --- a/dashboard/components/layout/Layout.tsx +++ b/dashboard/components/layout/Layout.tsx @@ -1,6 +1,5 @@ import * as Sentry from '@sentry/react'; import classNames from 'classnames'; -import { BrowserTracing } from '@sentry/browser'; import { useRouter } from 'next/router'; import { ReactNode, useEffect } from 'react'; import settingsService from '@services/settingsService'; @@ -47,7 +46,7 @@ function Layout({ children }: LayoutProps) { if (telemetry?.telemetry_enabled && environment.production) { Sentry.init({ dsn: environment.SENTRY_URL, - integrations: [new BrowserTracing()], + integrations: [Sentry.browserTracingIntegration()], // We recommend adjusting this value in production, or using tracesSampler // for finer control