Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.53 KB

README.md

File metadata and controls

70 lines (49 loc) · 1.53 KB

a flexible front-end monitor SDK

left


简体中文 English

Quick Start

  1. Dependencies
npm install --save reguard-sdk
  1. Import sdk
ESM

import { Tracker } from "reguard-sdk";

Script

<script src="../node_modules/reguard-sdk/index.min.js"></script>

  1. Initialization
new Tracker({
    uuid: '', //uuid
    historyTracker: true, //history report
    requestUrl: '', // request url
    FPTracker: true, // FP Tracker
    FCPTracker: true, //FCP Tracker
    DOMTracker: true, //DOM Tracker
    jsError: true, //js Error Tracker
    resourceError: true, //resource Tracker
    screenTracker: true, //White screen Tracker
    performanceIndex: true, // Browser performance Tracker
    requestTracker: true, //request Tracker
});

Others

Name Description
reGuard-server Data Server
reGuard-admin-react Monitor with React
reGuard-admin-vue Monitor with Vue

License

MIT