wx.reportMonitor有bug啦,始终采集不到数据
- 当前 Bug 的表现(可附上截图)
不论是在开发版,还是正式版,wx.reportMonitor始终采集不到数据
APPID:wx805a3f3b4be7d0d6
正式版已经发布一天多,但仍然没有业务数据

但真实的网路是有请求的,如下图:

- 预期表现
可以正常采集到数据
- 复现路径
- 提供一个最简复现 Demo
var monitor = {
reportMonitor: function (id, value) {
if (wx.reportMonitor) {
wx.reportMonitor(id, value);
}
},
Net_Req_Total: '0', //网络请求总量
Net_Req_Fail: '1', //网络请求失败
Net_Req_Timeout: '2', //网络请求超时
Net_Req_Drop: '4', //网络请求丢弃
Exception_Total: '3', //异常总量
};
module.exports = monitor;
reqSvrAPI: function (args) {monitor.reportMonitor(monitor.Net_Req_Total, 1);
}