add sentry
This commit is contained in:
1 parent
8338a9eb74
commit
5dae704649
3 files changed
+85
-1
No files matched your search
+19
@@ -8,10 +8,29 @@ import './assets/css/tailwind.css';
|
||||
import dayjs from './plugins/dayjs';
|
||||
import './plugins/font-awesome';
|
||||
import { vLoading } from 'element-plus';
|
||||
import * as Sentry from '@sentry/vue';
|
||||
import { BrowserTracing } from '@sentry/tracing';
|
||||
import { getEnv } from './utils';
|
||||
|
||||
console.debug('start to create app');
|
||||
const app = createApp(App);
|
||||
|
||||
Sentry.init({
|
||||
app,
|
||||
dsn: 'https://d9f92cc082b248ff9f4bea99de18483f@o191066.ingest.sentry.io/1291454',
|
||||
integrations: [
|
||||
new BrowserTracing({
|
||||
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
|
||||
tracePropagationTargets: ['data.local.zhishuyun.com', 'data.test.zhishuyun.com', 'data.zhishuyun.com']
|
||||
})
|
||||
],
|
||||
environment: getEnv(),
|
||||
// Set tracesSampleRate to 1.0 to capture 100%
|
||||
// of transactions for performance monitoring.
|
||||
// We recommend adjusting this value in production
|
||||
tracesSampleRate: 1.0
|
||||
});
|
||||
|
||||
app.use(router);
|
||||
app.use(store);
|
||||
// app.use(ElementPlus);
|
||||
|
||||
Reference in new issue
Block a user