Bugsnag-js: afterSend callback with Error Id

Created on 18 Mar 2019  路  6Comments  路  Source: bugsnag/bugsnag-js

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.

backlog feature request

Most helpful comment

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.

All 6 comments

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

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.

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

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 馃憤

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

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 馃槉

Was this page helpful?
0 / 5 - 0 ratings