Skip to content

Commit

Permalink
fix: deprecated browser tracing
Browse files Browse the repository at this point in the history
Signed-off-by: Azanul <azanulhaque@gmail.com>
  • Loading branch information
Azanul committed May 28, 2024
1 parent 7980b02 commit b0559a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dashboard/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b0559a6

Please sign in to comment.