What's MITO?
This guide preserves integration examples from earlier SDK releases. Version 4 requires an ES2015-capable runtime and drops Internet Explorer support. Open the v4 quickstart
MITO,pronounced like [miːtəʊ],it's the abbreviation of monitor that is a lightweight SDK for monitor web and weixin miniprograme
quick start
Section titled “quick start”🛠️ Install
Section titled “🛠️ Install”# using npmnpm i @mitojs/browser# using yarnyarn add @mitojs/browser🥳 Usage
Section titled “🥳 Usage”import { init } from '@mitojs/browser'
const MitoInstance = init({ dsn: 'https://test.com/yourInterface', maxBreadcrumbs: 100})🤔 what can it do?
Section titled “🤔 what can it do?”collecting error information
Section titled “collecting error information”can collect the following error information:
- code error
- onhandlerejection
- resource loading error
- http request error
- route change error
collecting user behavior
Section titled “collecting user behavior”can collect the following user behavior
- click event、wx.tap、wx.touchmove
- http request
- console
- route change
support platforms
Section titled “support platforms”- web(>= IE8) @mitojs/browser
- Vue2、Vue3 @mitojs/vue
- React(>=16.x) @mitojs/react
- weixin miniprograme @mitojs/wx-mini
Demo:experience the SDK to collect data
Section titled “Demo:experience the SDK to collect data”React 19: error boundaries and request tracing · Vue 3: component errors and report inspector · Vue 2: error monitoring and HTTP requests. All three demos receive real SDK-generated test reports locally in the browser.
DIY your weixin miniprograme track SDK
Section titled “DIY your weixin miniprograme track SDK”@mitojs/wx-mini just provider some hooks and report method because of the track is too business。However,you can DIY track SDK for yourself with those hooks.
😃 monitoring platform(mito admin with mock data)
Section titled “😃 monitoring platform(mito admin with mock data)”Open the mock monitoring dashboard to inspect sample records. They are simulated reports, not live SDK uploads or production data.
vue-admin-demo: show a HTTP_ERROR in vue platform
react-admin-demo: show a JAVASCRIPT_ERROR in react platform
js-admin-demo:show JAVASCRIPT_ERROR in js platform
wx-mini-admin-demo:show JAVASCRIPT_ERROR in wx-mini platform