Skip to content

Files

Latest commit

6e775c6 · Apr 16, 2025

History

History
This branch is 10 commits behind develop.

vue

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 14, 2025
Jan 10, 2025
Nov 2, 2021
Jan 23, 2025
Feb 15, 2025
Apr 16, 2025
Dec 20, 2023
Jul 10, 2024
Jul 18, 2024
Mar 18, 2022
Jul 18, 2024

Sentry

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) as early in your application as possible.

Vue 3

const app = createApp({
  // ...
});

Sentry.init({
  app,
  dsn: '__PUBLIC_DSN__',
  integrations: [
    // Or omit `router` if you're not using vue-router
    Sentry.browserTracingIntegration({ router }),
  ],
});

Vue 2

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__',
  integrations: [
    // Or omit `router` if you're not using vue-router
    Sentry.browserTracingIntegration({ router }),
  ],
});

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