|
@@ -1,12 +1,17 @@
|
|
|
import * as Sentry from '@sentry/vue'
|
|
|
|
|
|
-export function initSentry() {
|
|
|
+export function initSentry(Vue) {
|
|
|
if (!import.meta.env.DEV) {
|
|
|
Sentry.init({
|
|
|
+ Vue,
|
|
|
dsn: 'https://1009883edc154953bec82b5e9ec88bce@jysentry.jydev.jianyu360.cn/7',
|
|
|
release: import.meta.env.VITE_APP_GIT_BRANCH,
|
|
|
environment: 'produce',
|
|
|
- sampleRate: 0.1
|
|
|
+ sampleRate: 1,
|
|
|
+ beforeSend: (event) => {
|
|
|
+ event.user.email = localStorage.getItem('BIGMEMBER_PC')
|
|
|
+ return event
|
|
|
+ }
|
|
|
})
|
|
|
Sentry.setTag('url', location.href)
|
|
|
const id = document.cookie.match(/(^|;)\s*ud_safe\s*=\s*([^;]+)/)
|