Electron: Getting lastEventId() after captureException

For JavaScript there is a method to get the ID of the last event sent to Sentry: Usage | Sentry Documentation - I wonder if the same exists for the ‘@sentry/electron’ npm module? Or if there’s an easy way to get this in an Electron renderer process?

Basically I have an Electron + React process where I catch errors using a React error boundary and want to show the event ID to the user, so we can easily find the event if the user sends us a screenshot.

We are currently working on it ref:
https://github.com/getsentry/sentry-javascript/pull/1497

Next electron release will contain this.

1 Like