Skip to content

监控平台的sdk,包括rn和web两端的自动埋点以及手动埋点

License

Notifications You must be signed in to change notification settings

Sp-Luigi/monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monitor-dom

简体中文

👋 Feature

  • monitor xhr ✅
  • monitor fetch ✅
  • monitor route change(hashRoute, historyRoute) ✅
  • monitor code error, resource load error ✅
  • monitor unhanlde Rejected promise ✅
  • monitor custom transfer data 🔨

😎 Get Started

🛠️ Install

# using npm
npm i monitor-dom
# using yarn
yarn add monitor-dom

🥳 Usage

import initMonitorSdk from 'monitor-dom'
initMonitorSdk({
	serverDomain: your server ip ,
  appVersion: your current appVersion ,
  app_id: application id(a unique string),
  options: your options for this sdk
})

⚙️ options

Property Description Type Default
moniteXhr if monite application's xhr boolean true
moniteFetch if monite application's fetch boolean true
moniteJsError if monite application's code error boolean true
moniteUnhandlePromise if monite application's unhandlePromise boolean true
filterHttpUrl filter URL to without monitor (url) => boolean () => true
eventHttpRoute The routing path is mapped to the back end through events (eventType: number) => string () => 'monitor'

About

监控平台的sdk,包括rn和web两端的自动埋点以及手动埋点

Resources

License

Stars

Watchers

Forks

Packages

No packages published