in src/monitor.ts [82:105]
setPerformance(configs: CustomReportOptions) {
// history router
this.customOptions = {
...this.customOptions,
...configs,
};
this.validateOptions();
this.performance(this.customOptions);
const { service, pagePath, serviceVersion, collector } = this.customOptions;
if (this.customOptions.jsErrors) {
JSErrors.setOptions({ service, pagePath, serviceVersion, collector });
PromiseErrors.setOptions({ service, pagePath, serviceVersion, collector });
if (this.customOptions.vue) {
VueErrors.setOptions({ service, pagePath, serviceVersion, collector });
}
}
if (this.customOptions.apiErrors) {
AjaxErrors.setOptions({ service, pagePath, serviceVersion, collector });
}
if (this.customOptions.resourceErrors) {
ResourceErrors.setOptions({ service, pagePath, serviceVersion, collector });
}
setConfig(this.customOptions);
},