File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
platform-includes/performance/configure-sample-rate Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 11``` javascript
2- import { createBrowserRouter } from " react-router-dom" ;
32import * as Sentry from " @sentry/react" ;
43
54Sentry .init ({
@@ -14,13 +13,6 @@ Sentry.init({
1413 // Or, if you are using react router, use the appropriate integration
1514 // See docs for support for different versions of react router
1615 // https://docs.sentry.io/platforms/javascript/guides/react/configuration/integrations/react-router/
17- Sentry .reactRouterV6BrowserTracingIntegration ({
18- useEffect: React .useEffect ,
19- useLocation,
20- useNavigationType,
21- createRoutesFromChildren,
22- matchRoutes,
23- }),
2416 ],
2517
2618 // For finer control of sent transactions you can adjust this value, or
@@ -31,3 +23,8 @@ Sentry.init({
3123 tracePropagationTargets: [" localhost" , / ^ https:\/\/ yourserver\. io\/ api/ ],
3224});
3325```
26+
27+ <Alert >
28+ See [ React Router] ( /platforms/javascript/guides/react/features/react-router/ )
29+ for more information on how to configure tracing with React Router.
30+ </Alert >
You can’t perform that action at this time.
0 commit comments