fe-mitojs
v0.2.8
Published
广联达错误数据监控
Downloads
58
Readme
fe-mitojs
概要
##功能 上报pv uv 捕获error 上报性能performance 上报用户轨迹 统计当前用户ip 统计当前用户操作系统、浏览器版本内核、屏幕尺寸 统计当前页面加载时间 统计当前页面错误用户数 hack ajax fetch 上报加载的资源 hack console hack onpopstate 用法 appKey在http://femonitor.test.m2.com.cn/home申请
##方法一
##方法二 npm i fe-mitojs import Monitor from 'fe-mitojs' new Monitor({ appKey: 'd3b1f6fb75d54254bf373164af8c9ec9', // 项目配置监控上报id }); ##配置 { delay: true,// 是否延时 maxErrorLen: 100,// 最大允许上传错误数量 appKey: 'd3b1f6fb75d54254bf373164af8c9ec9', // 项目配置监控上报id disabled: false,// 是否上报,设置为true则不统计所有 outtime: 10 // 上报数据间隔时长, monitorAssetError: boolean;//是否监控 资源异常 monitorJsError: boolean;//是否监控 JS代码异常 monitorPagePerformance: boolean;//是否监控 页面性能 monitorXhr: boolean;//是否监控 服务请求 } ##备注 fe2e 前端监控,主要监控前端js,vue2、react错误统计日志,h5,小程序,RN目前在开发中~~~