-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
docs(react-router): add sentry init setup #18368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bcc317f
e181f07
e9bbabf
f72b11a
9687113
921f355
78f30ce
1d405e9
9147d02
8a315d5
b5efd94
72275c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,8 +12,10 @@ description: "Learn how to manually set up Sentry in your React Router v7 app an | |
| </Alert> | ||
|
|
||
| <Alert level="info"> | ||
| For the fastest setup, we recommend using the [wizard | ||
| installer](/platforms/javascript/guides/react-router). | ||
| Looking for automatic setup with `sentry init` or the React Router Framework | ||
| Mode wizard? Follow the [React Router quickstart](/platforms/javascript/guides/react-router/) | ||
| instead. | ||
| Continue with this guide to set up Sentry manually. | ||
| </Alert> | ||
|
|
||
| <PlatformContent includePath="getting-started-prerequisites" /> | ||
|
|
@@ -205,7 +207,7 @@ Automatic server-side instrumentation is currently only supported on: | |
|
|
||
| If you're on a different version, you have two options: | ||
|
|
||
| 1. **Recommended**: Use the <PlatformLink to="/features/instrumentation-api/">Instrumentation API</PlatformLink> (React Router 7.9.5+) for automatic tracing without Node version restrictions | ||
| 1. **Recommended**: Use the stable <PlatformLink to="/features/instrumentation-api/">Instrumentation API</PlatformLink> (React Router 7.15+) for automatic tracing without Node version restrictions. React Router 7.9.5 introduced an earlier unstable API with `unstable_*` names. | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leaving this note for reviewers: 7.15+ is intentional because the snippets here use the stabilized React Router instrumentation API ( |
||
| 2. **Alternative**: Use our manual server wrappers (shown below) | ||
|
|
||
| For server loaders use `wrapServerLoader`: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.