infra-pilot

1.0.2 • Public • Published
mito-logo

一款轻量级的前端性能监控JS SDK,包括常见错误收集、用户行为以及自定义日志上报,提供全链路日志可视化界面。

npm version license Code style GitHub last commit build status codecov

功能

  • [x] 🔨监听请求错误
  • [x] 🔨console
  • [x] 🔨路由跳转
  • [x] 🔨代码报错
  • [x] 🔨click、wx:tab、touchmove
  • [x] 🔨资源加载错误
  • [x] 🏅自定义上报错误
  • [x] 🚀丰富的hooks与配置项支持可高定制化
  • [x] 🌝支持IE8和安卓5以上
  • [x] 👌持续迭代与更新
  • [x] 完善的浏览器e2e和微信小程序e2e
  • [x] 完善的单元测试(77%~coding)
  • [x] 支持原生Web @tr-infra/pilot-browser
  • [x] 支持Web框架(Vue3、Vue2、React@Next) @tr-infra/pilot-web
  • [x] 支持原生微信小程序、支持uni-app等微信小程序框架 @tr-infra/pilot-wx-mini
  • [x] 支持Web性能监控 @tr-infra/pilot-web-performance
  • [x] 支持微信小程序性能监控 @tr-infra/pilot-wx-mini-performance

安装

web

使用npm

$ npm i @tr-infra/pilot-web

使用yarn

$ yarn add @tr-infra/pilot-web

web-performance

$ npm i @tr-infra/pilot-web-performance

使用yarn

$ yarn add @tr-infra/pilot-web-performance

wx-mini

使用npm

$ npm i @tr-infra/pilot-wx-mini

使用yarn

$ yarn add @tr-infra/pilot-wx-mini

使用指南

使用指南

hooks与配置项

hooks与配置项

示例

monitor-在线demo

monitor-在线demo

收集信息平台展示

该SDK能收集哪些信息:下面这些例子给你一一展示:

react-example

vue-在线示例

react-在线示例

js-在线示例

wx-mini-在线示例

Package Sidebar

Install

npm i infra-pilot

Weekly Downloads

24

Version

1.0.2

License

MIT

Unpacked Size

19.9 MB

Total Files

271

Last publish

Collaborators

  • keman.chen