UNPKG

mutiple

Version:

A SDK for monitoring browser and miniPrograme errors

39 lines (36 loc) 951 B
includeHttpUrlTraceIdRegExp import { beforeDataReport } from '../common' import { MitoVue, SDK_VERSION, SDK_NAME, init, log, errorBoundaryReport, beforeAppAjaxSend, beforePushBreadcrumb, manualInit, includeHttpUrlTraceIdRegExp, maxBreadcrumbs, enableTraceId } from './base' manualInit(({ customTag, apikey }) => { init({ maxBreadcrumbs, apikey, enableTraceId, includeHttpUrlTraceIdRegExp, dsn: 'https://trycatch-end.91jkys.com/errors/upload', filterXhrUrlRegExp: /(login|register|password)/, beforePushBreadcrumb(breadcrumb, cruBreadcrumbData) { return beforePushBreadcrumb(breadcrumb, cruBreadcrumbData) }, beforeDataReport(data) { return beforeDataReport(data, customTag) }, beforeAppAjaxSend({ method, url }, config) { return beforeAppAjaxSend({ method, url }, config) } }) }, false) export { MitoVue, SDK_VERSION, SDK_NAME, log, errorBoundaryReport }