getsentry / raven-node

A standalone (Node.js) client for Sentry
https://sentry.io/
BSD 2-Clause "Simplified" License
454 stars 135 forks source link

Support SSR for vue.js #278

Open smitt04 opened 7 years ago

smitt04 commented 7 years ago

Not sure which library this should go under. But I use vue.js and raven-js for the client side errors. I also use raven for node to capture server errors. But I am also doing SSR rendering with the bundle renderer stream from https://www.npmjs.com/package/vue-server-renderer

Currently if there is an error on the stream i capture it using Raven.captureException(error) but it would be nice to get the same vue context that we get for browser in the ssr app.

MaxBittker commented 7 years ago

This makes sense smitt04, https://github.com/getsentry/raven-js/blob/master/plugins/vue.js is the entire raven-js vue plugin and as you can see it's very simple - you should be able to accomplish something similar with raven-node's APIs as a quick individual solution to get componentName and propsData. I can think more about what that might look like, and @LewisJEllis should have a more concrete idea as well.