Skip to content

Commit

Permalink
删除sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpu007 committed Mar 12, 2024
1 parent 4b69013 commit c907a84
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 43 deletions.
7 changes: 0 additions & 7 deletions .sentryclirc

This file was deleted.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"test:ci": "npm run lint && npm run test:unit"
},
"dependencies": {
"@sentry/tracing": "^7.19.0",
"@sentry/vue": "^7.19.0",
"axios": "0.18.1",
"core-js": "3.6.5",
"echarts": "^4.2.1",
Expand All @@ -30,7 +28,6 @@
"vuex": "3.1.0"
},
"devDependencies": {
"@sentry/webpack-plugin": "^1.20.0",
"@vue/cli-plugin-babel": "4.4.4",
"@vue/cli-plugin-eslint": "4.4.4",
"@vue/cli-plugin-unit-jest": "4.4.4",
Expand Down
19 changes: 0 additions & 19 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ import '@/permission' // permission control

import * as filters from './filters' // global filters

import * as Sentry from '@sentry/vue'
import { Integrations } from '@sentry/tracing'

// set ElementUI lang to EN
Vue.use(ElementUI, { size: Cookies.get('size') || 'mini' })
// 如果想要中文版 element-ui,按如下方式声明
Expand All @@ -33,22 +30,6 @@ Object.keys(filters).forEach(key => {

Vue.config.productionTip = false

Sentry.init({
Vue,
dsn: 'http://[email protected]/3',
integrations: [
new Integrations.BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
tracingOrigins: ['localhost', 'my-site-url.com', /^\//]
})
],
logErrors: true,
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0
})

new Vue({
el: '#app',
router,
Expand Down
14 changes: 0 additions & 14 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'
const path = require('path')
const SentryPlugin = require('@sentry/webpack-plugin')
const defaultSettings = require('./src/settings.js')
const UploadSourceMapWebpackPlugin = require('./build/UploadSourceMapWebpackPlugin');

Expand Down Expand Up @@ -137,18 +136,5 @@ module.exports = {
config.optimization.runtimeChunk('single')
}
)

if (process.env.NODE_ENV === 'production') {
config.plugin('sentry').use(SentryPlugin, [{
// 指定忽略文件配置
ignoreFile: ['node_modules', '.gitignore'],
// 指定上传目录
include: './dist',
// 指定sentry上传配置
configFile: './.sentryclirc',
// 保持与publicPath相符
urlPrefix: '/'
}])
}
}
}

0 comments on commit c907a84

Please sign in to comment.