6.2.2 • Published 3 years ago

great-sentry-vue v6.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Official Sentry SDK for Vue.js

Links

General

This package is a wrapper around @sentry/browser, with added functionality related to Vue.js. All methods available in @sentry/browser can be imported from @sentry/vue.

To use this SDK, call Sentry.init(options) before you create a new Vue instance.

import Vue from 'vue'
import App from './App'
import router from './router'
import * as Sentry from '@sentry/vue'

Sentry.init({
  Vue: Vue,
  dsn: '__PUBLIC_DSN__',
})

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})