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.
45
+
> **tracesSampleRate: 1.0**
46
+
> The above setting ensures that 100% of transactions will be sent to Sentry, but we recommend lowering this number in production.
46
47
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:
48
+
## Verify
49
+
This snippet contains an intentional error and can be used as a test to make sure that everything's working as expected.
48
50
49
51
```javascript
50
52
return<button onClick={() =>methodDoesNotExist()}>Break the world</button>;
51
53
```
52
54
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.
55
+
---
56
+
## Next Steps
57
+
-[Source Maps](https://docs.sentry.io/platforms/javascript/guides/react/sourcemaps/): Learn how to enable readable stack traces in your Sentry errors.
58
+
-[React Features](https://docs.sentry.io/platforms/javascript/guides/react/features/): Learn about our first class integration with the React framework.
59
+
-[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