@bugsnag/vue-router-performance
TypeScript icon, indicating that this package has built-in type declarations

2.4.0 • Public • Published

@bugsnag/vue-router-performance

A vue router integration for BugSnag performance

Usage

import BugsnagPerformance from '@bugsnag/browser-performance'
import { VueRouterRoutingProvider } from '@bugsnag/vue-router-performance'
import { createRouter, createWebHistory } from 'vue-router'

const base = '/my-app'

const router = createRouter({
  history: createWebHistory(base),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/contacts/:contactId',
      name: 'contact',
      component: () => import('./views/ContactView.vue')
    }
  ]
})


BugsnagPerformance.start({
  apiKey,
  routingProvider: new VueRouterRoutingProvider(router, base)
})

const app = createApp(App)

app.use(router)

app.mount('#app')

/@bugsnag/vue-router-performance/

    Package Sidebar

    Install

    npm i @bugsnag/vue-router-performance

    Weekly Downloads

    1,034

    Version

    2.4.0

    License

    MIT

    Unpacked Size

    5.47 kB

    Total Files

    9

    Last publish

    Collaborators

    • joshedney
    • ahmed_bugsnag
    • gingerbenw
    • bullmo
    • foygl
    • djskinner
    • tomlongridge
    • imjoehaines
    • twometresteve