You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above configuration captures both error and performance data. To reduce the volume of performance data captured, change `tracesSampleRate` to a value between 0 and 1.
44
-
45
-
After this step, Sentry will report any uncaught exceptions triggered by your application.
The example above ensures every transaction will be to Sentry, but we recommend lowering this value in production.
50
+
</div>
51
+
</div>
46
52
47
-
You can trigger your first event from your development environment by raising an exception somewhere within your application. An example of this would be rendering a button whose `onClick` handler attempts to invoke a method that does not exist:
53
+
## Verify
54
+
This snippet includes an intentional error, so you can test that everything is working as soon as you set it up.
48
55
49
56
```javascript
50
57
return<button onClick={() =>methodDoesNotExist()}>Break the world</button>;
51
58
```
52
-
53
-
Once you've verified the library is initialized properly and sent a test event, consider visiting our [complete React docs](https://docs.sentry.io/platforms/javascript/guides/react/). There you'll find additional instructions for surfacing valuable context from React error boundaries, React Router, Redux, and more.
59
+
---
60
+
## Next Steps
61
+
-[Source Maps](https://docs.sentry.io/platforms/javascript/guides/react/sourcemaps/): Learn how to enable readable stack traces in your Sentry errors.
62
+
-[React Features](https://docs.sentry.io/platforms/javascript/guides/react/features/): Learn about our first class integration with the React framework.
63
+
-[Session Replay](https://docs.sentry.io/platforms/javascript/guides/react/session-replay/): Get to the root cause of an error or latency issue faster by seeing all the technical details related to that issue in one visual replay on your web application.
0 commit comments