In Browser, log event_id to external system


I would like to add an event to Intercom whenever an error happens for a user. For that I would need to access the event_id an error whenever an error has been logged to Sentry.

I saw that I can (probably, thread is for node) obtain the last event id via Sentry.getCurrentHub().lastEventId(); but I’m not sure how to hook into the event capture process so that I know an error occurred/has been logged. Do I have to write a version of GlobalHandlers to make that work?

Any pointers appreciated! :slight_smile: