-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Meta: Help WantedPackage: reactIssues related to the Sentry React SDKIssues related to the Sentry React SDK
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
Package + Version
- "@sentry/react": "^6.17.6",
- "@sentry/tracing": "^6.17.6",
Version:
6.17.6
Description
In the following example, I'm trying to get the id of the event that is captured, so that it will be available to the user that experiences the error to send in a support ticket. However, if I then go search sentry for event.id: <the event id> I can't find the event, and if I track it down manually, the event's ID is not the same.
Is this a bug or do I not understanding what eventId is for?
const MyComponent = () => {
const [msg, setMsg] = React.useState("Works");
return (
<Sentry.ErrorBoundary
fallback={({ eventId }) => {
return <p>Search Sentry for <code>event.id: {eventId}</code></p>;
}}
>
<div>{msg}</div>
<button
onClick={() => {
setMsg({ message: "This will break" });
}}
>
Click to trigger error
</button>
</Sentry.ErrorBoundary>
);
};chadwhitacre, quanglm1, simon-v-swyftx and Eigilak
Metadata
Metadata
Assignees
Labels
Meta: Help WantedPackage: reactIssues related to the Sentry React SDKIssues related to the Sentry React SDK