Add the following snippet to your application’s HTML file. It should go after where you have loaded the Vue library file.
For instructions using npm or Bower, please see our official Vue plugin docs.
See component metadata in Sentry
Vue 2 introduces a new
errorHandler config option that can be used to capture Vue-specific debugging information. The Sentry Vue plugin uses this callback to add valuable metadata about the state of your application to crash reports, including affected component names and the values of props.
Combine with Laravel reporting
Earlier in 2016, Vue became the default client-side framework for Laravel projects. If you’re using Vue with Laravel, you can additionally use our sentry-laravel package for end-to-end reporting of your application.
That’s it! As always, feedback, comments, or pull requests are greatly appreciated.