UNPKG

@sdc-monitor/demo

Version:

<div align="center"> <a href="#" target="_blank"> <img src="https://i.loli.net/2021/07/28/EvPwd4NjVH3tBfO.jpg" alt="mito-logo" height="90"> </a> <p>A Lightweight SDK For Monitor Web</p>

30 lines (28 loc) 681 B
const instance = MITO.init({ vue: Vue, debug: true, silentConsole: true, maxBreadcrumbs: 10, dsn: 'http://test.portal.learn.oa.com/training-portal-common/api/front/log/upload', configReportXhr(xhr, reportData) { xhr.setRequestHeader('mito-header', 'test123') } }, [MITO.vuePlugin] ) window._MITO_ = instance const instance2 = MITO.init( { vue: Vue, silentXhr: true, debug: true, silentConsole: true, maxBreadcrumbs: 10, dsn: 'http://localhost:2021/errors/upload2', configReportXhr(xhr, reportData) { xhr.setRequestHeader('mito-header', 'test123') } }, [MITO.vuePlugin] ) window._MITO_2 = instance2