diff --git a/src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx b/src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx index 17b2eca293d69..82bd03bb73469 100644 --- a/src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx +++ b/src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx @@ -96,6 +96,7 @@ import { import * as Sentry from "@sentry/react"; Sentry.init({ + dsn: "___PUBLIC_DSN___", integrations: [ new Sentry.BrowserTracing({ routingInstrumentation: Sentry.reactRouterV6Instrumentation( @@ -202,6 +203,7 @@ const SentryRoute = Sentry.withSentryRouting(Route); const history = createBrowserHistory(); Sentry.init({ + dsn: "___PUBLIC_DSN___", integrations: [ new Sentry.BrowserTracing({ routingInstrumentation: Sentry.reactRouterV5Instrumentation(history), @@ -241,6 +243,7 @@ const history = createBrowserHistory(); const routes = [{ path: '/users/:userid' }, { path: '/users' }, { path: '/' }]; Sentry.init({ + dsn: "___PUBLIC_DSN___", integrations: [ new Sentry.BrowserTracing({ routingInstrumentation: Sentry.reactRouterV5Instrumentation(history, routes, matchPath), @@ -286,6 +289,7 @@ const routes = ( ); Sentry.init({ + dsn: "___PUBLIC_DSN___", integrations: [ new Sentry.BrowserTracing({ routingInstrumentation: Sentry.reactRouterV3Instrumentation(