React Router
Learn about Sentry's React Router integration.
(Available in version 5.21.0 and above)
React Router support is included in the @sentry/react
package since version 5.21.0
.
Note
The React Router integration is designed to work with Sentry Tracing. Please see Set Up Tracing with React for more details on how to set up and install the SDK.
The React Router instrumentation uses the React Router library to create pageload/navigation
transactions to ensure you collect meaningful performance data about the health of your page loads and associated requests.
We support integrations for React Router 3, 4, 5, 6 and 7.
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").