From 3b39c79040c6206e386711772c3a8c534bda3eeb Mon Sep 17 00:00:00 2001 From: Michelle Zhang <56095982+michellewzhang@users.noreply.github.com> Date: Wed, 12 Jul 2023 14:09:55 -0700 Subject: [PATCH] Update DSN in react-router.mdx (#7423) Was referencing the Javascript docs for configuring Sentry with React and noticed that the DSN client key did not appear in some of the example router configurations. Modified the examples so that each one has a DSN. (https://docs.sentry.io/platforms/javascript/guides/react/configuration/integrations/react-router/) --- .../guides/react/configuration/integrations/react-router.mdx | 4 ++++ 1 file changed, 4 insertions(+) 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(