Question on custom data

stevescott

Posted on
Dec 17 2013

I would like to send up some custom data with EVERY JS.net error generated (custom CMS specific stuff to help debug issues).

I don't want to try\catch the entire app to send custom data, I'd like it available right in the backend UI on the actual error.

Do we have any ability to to do that? Like in the javascript object init tell it to go grab some global properties\objects everytime it logs an error? ...or a "beforesend" event in .net where I can attach things?

Steve


John-Daniel Trask

Raygun

Posted on
Dec 18 2013

Yup, the JavaScript provider does indeed have the ability to set custom data for all errors. This is done in the init() call like this:

Raygun.init('api_key', null, ['customString’, customObject]).attach();

Hope this works for you, if you have any more issues or questions let us know.

Regards,

Callum


stevescott

Posted on
Dec 18 2013

Awesome! ...Is there a documentation page on that?

What about .net errors?...same deal?


stevescott

Posted on
Dec 18 2013

Reply