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 1
1
``` javascript
2
- import { createBrowserRouter } from " react-router-dom" ;
3
2
import * as Sentry from " @sentry/react" ;
4
3
5
4
Sentry .init ({
@@ -14,13 +13,6 @@ Sentry.init({
14
13
// Or, if you are using react router, use the appropriate integration
15
14
// See docs for support for different versions of react router
16
15
// 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
- }),
24
16
],
25
17
26
18
// For finer control of sent transactions you can adjust this value, or
@@ -31,3 +23,8 @@ Sentry.init({
31
23
tracePropagationTargets: [" localhost" , / ^ https:\/\/ yourserver\. io\/ api/ ],
32
24
});
33
25
```
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