lukeyouell / craft-sentry

Error tracking that helps developers monitor and fix crashes in real time. Iterate continuously. Boost efficiency. Improve user experience.
https://sentry.io
MIT License
17 stars 10 forks source link

FR: Sentry JS error reporting #19

Closed jamesmacwhite closed 4 years ago

jamesmacwhite commented 5 years ago

Hi @lukeyouell,

Coming from a Craft 2 project, we used a Craft 2 Sentry plugin which loaded Raven JS which could track JS related exceptions/errors. Raven.js has since been deprecated in favour of the Unified Browser JavaScript SDK:

https://docs.sentry.io/error-reporting/quickstart/?platform=browser

Do you think it would be possible for this plugin to support loading the Sentry JS SDK on the front end to capture these errors?

Thanks!

lukeyouell commented 4 years ago

This isn't something the plugin will be covering as it can be achieved without it. You just need to load the script and use your dot env value wherever you load it as per the Sentry docs.