Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

aa-tracker

runzhi.li20ISC1.0.55

前端监控后端接口响应以及数据的上报

前端, 监控, 接口, 上报

readme

tracker

这是一个埋点SDK This is a buried SDK

使用方法如下 The usage is as follows

  import tracker from 'aa-tracker'
  tracker.set({
    requestUrl:"xxxxxx", // 上报地址 POST
    xhrTracker: true, // 接口上报
    xhrOption: { // 接口上报配置
      duration: 1000 // 请求响应时长超过1000ms
    },
    headers: {} // 验证
  })