M-cheng-web / web-tracing

为前端项目提供【 埋点、行为、性能、异常、请求、资源、路由、曝光、录屏 】监控手段

Home Page:https://m-cheng-web.github.io/web-tracing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

我在ignoreErrors和ignoreRequest配置的接口没有效果

hytkxp opened this issue · comments

image image 接口上传的时候还是会上报上去

你好,我这边在demo项目上没有尝试了下,并没有复现,我的参数是:
ignoreRequest: [
/.+/loadFileLocaUNotSign.+/
],
这是我示例项目中部分的配置
Vue.use(WebTracing, {
dsn: '/trackweb',
// dsn: 'http://localhost:3351/trackweb',
appName: 'cxh',
debug: true,
pv: true,
performance: true,
error: true,
event: true,
// localization: true,
cacheMaxLength: 10,
cacheWatingTime: 1000,
userUuid: 'init_userUuid',
sendTypeByXmlBody: true,
recordScreen: true,

scopeError: true,

// tracesSampleRate: 0.5,

// ignoreErrors: ['111', /^promise/, /.split is not . function/],
ignoreRequest: [
/getAllTracingList/,
/cleanTracingList/,
/.+/loadFileLocaUNotSign.+/
],
}

image

我的配置用法和您的一样,但是就这个没有效果,不过我通过beforePushEventList勾子完成了我想要的效果