![]() React Router v3 support is maintained for React Router >= 3.2.0 and < 4.0.0. To use the router integration, import and set a custom routing instrumentation and pass it the history, your routes and a match function. You will also need to provide the matchPath function exported from the react-router-dom or react-router packages. You can pass an array of route config objects as per react-router-config. This is as there is no static route config that the SDK can use in React Router v4/v5. ![]() Use the withSentryRouting higher order component to create a SentryRoute component that will update the match path on. teams/:teamid/user/:userid instead of /teams/123/user/345), you must give the SDK access to the match path of the route render. You can pass an array of route config objects as per react-router-config. To get parameterized transaction names (ex. ![]() Make sure you use a Router component combined with createBrowserHistory (or equivalent). The React router instrumentation uses the React router library to create pageload/navigation transactions and paramaterize transaction names. We support integrations for React Router 3, 4 and 5. The React Router integration is designed to work with our Tracing SDK, Please see Getting Started with React Performance for more details on how to set up and install the SDK.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |