Skip to content
简体中文

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

Terminal window
# using npm
npm i @mitojs/browser
# using yarn
yarn add @mitojs/browser
import { init } from '@mitojs/browser'
const MitoInstance = init({
dsn: 'https://test.com/yourInterface',
maxBreadcrumbs: 100
})

can collect the following error information:

  • code error
  • onhandlerejection
  • resource loading error
  • http request error
  • route change error

can collect the following user behavior

  • click event、wx.tap、wx.touchmove
  • http request
  • console
  • route change

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.

@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