import * as Sentry from '@sentry/vue'; import { BrowserTracing } from '@sentry/tracing'; import { App } from 'vue'; import { Router } from 'vue-router'; export function setupSentry(app: App, router: Router) { Sentry.init({ app, dsn: 'https://3c2a1dbc7af342e4aa4334195c552225@sentry.shducheng.net/2', integrations: [ new BrowserTracing({ routingInstrumentation: Sentry.vueRouterInstrumentation(router), tracePropagationTargets: ['localhost', 'next.shducheng.net', /^\//], }), ], tracesSampleRate: 1.0, }); }