GoogleCloudPlatform / stackdriver-errors-js

Client-side JavaScript exception reporting library for Cloud Error Reporting
https://cloud.google.com/error-reporting/
Apache License 2.0
362 stars 54 forks source link

Send additional context info #69

Open wclr opened 5 years ago

wclr commented 5 years ago

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.

steren commented 5 years ago

Stackdriver Error Reporting does not allow to pass arbitrary labels.

You would need to add this information to the error message

wclr commented 5 years ago

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

danielpetrocchi commented 3 years ago

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

How have you solved the issue in the end?