APMInsight网络监控支持监控OkHttp网络请求,确认项目网络请求使用的是OkHttp。
builder.debugMode(true);
然后Logcat过滤ApmInsight:
关键字,确认存在Receive:NetData
日志2020-11-17 11:47:36.778 13404-13404/com.example.apm.insight.demo D/ApmInsight: APM_INIT //初始化完成 2020-11-17 11:47:36.947 13404-13532/com.example.apm.insight.demo D/ApmInsight: APM_START 2020-11-17 11:47:46.957 13404-13532/com.example.apm.insight.demo D/ApmInsight: FetchSetting: //拉取配置完成 2020-11-17 11:47:46.974 13404-13532/com.example.apm.insight.demo D/ApmInsight: FinalSetting: //接收到网络监控数据 2020-11-17 11:47:48.284 13404-13617/com.example.apm.insight.demo D/ApmInsight: Receive:NetData //发送端上监控数据 2020-11-17 11:49:49.695 13404-13615/com.example.apm.insight.demo D/ApmInsight: Send: url:https://tbm.snssdk.com/monitor/collect/c/performance/ response:200