bugsnag-js icon indicating copy to clipboard operation
bugsnag-js copied to clipboard

afterSend callback with Error Id

Open killia15 opened this issue 6 years ago • 8 comments

I'd like to have access to the error Id so that I can generate the link and send it off to other services. From looking at the Bugsnag Error Reporting API docs, a successful response comes back with the Bugsnag-Event-ID. Could we expose that?

I see a mention of an afterNotify callback on #35, but in this case I'm looking for the id, rather than just the fact that it was successfully logged.

killia15 avatar Mar 18 '19 03:03 killia15

@killia15 - Thank you for your comments. This is now raised in our roadmap.

abigailbramble avatar Aug 22 '19 12:08 abigailbramble

Hello,

Is there any news for this feature? If we could retrieve this ID, we could display it to the user so that he can communicate it to the support team and thus allow us to easily find the event in Bugsnag.

shaoshiva avatar Feb 24 '20 11:02 shaoshiva

Hi @shaoshiva, not just yet I'm afraid. However, in order to link your user to the event in Bugsnag, you can generate a custom UUID for the user and link it to your event as custom metadata in your configuration, https://docs.bugsnag.com/platforms/javascript/#custom-diagnostics or through a beforeSend callback: https://docs.bugsnag.com/platforms/javascript/customizing-error-reports/#adding-a-callback You can then add a custom filter to search through your metadata. Note that custom filters are only available on our Standard and Enterprise plans. --Xander

xljones avatar Feb 24 '20 11:02 xljones

Hello Xander,

Thanks for the quick reply. What you propose is not an ideal solution because we have to integrate an additional library to our project in order to generate a UUID, but that will do the job in the meantime 👍

shaoshiva avatar Feb 24 '20 15:02 shaoshiva

Any news on this? This would be very helpful and more straight forward than the UUID workaround.

bendulum avatar Sep 22 '20 14:09 bendulum

Hi @bendulum, I'm afraid I don't have any updates to reported on this just yet. It's something that's still on our roadmap though 😊

xljones avatar Sep 25 '20 10:09 xljones

Any progress? It seems like it would be straight-forward to add, given that there is now an event callback on Bugsnag.notify()

sibljon avatar May 12 '23 09:05 sibljon

Hi @sibljon, This is still on the backlog. No updates as yet, other priorities have meant we haven't worked on this yet.

johnkiely1 avatar May 12 '23 13:05 johnkiely1