stackdriver-errors-js icon indicating copy to clipboard operation
stackdriver-errors-js copied to clipboard

Send additional context info

Open wclr opened this issue 6 years ago • 3 comments

Not sure how should I solve if I wan't to send with error additinal info about user context, for example, current browser window size?

I thought it could be added to context obj, but it seems it doesn't work this way. And context.user is just a string, should I stringify all the context info into this prop?

How this case should be handled? I think this problem should be mentioned in docs.

wclr avatar Jul 05 '19 20:07 wclr

Stackdriver Error Reporting does not allow to pass arbitrary labels.

You would need to add this information to the error message

steren avatar Jul 08 '19 18:07 steren

How is this usually done with stackdriver-errors-js?

wclr avatar Jul 08 '19 20:07 wclr

How is this usually done with stackdriver-errors-js?

How have you solved the issue in the end?

danielpetrocchi avatar Jun 03 '21 12:06 danielpetrocchi