Authored by TaoHuang

feat(client): add yas error report

... ... @@ -57,7 +57,7 @@ function handleClientError(scope, item) {
_.merge(data, {
measurement: 'error-report',
tags: {
type: 'client'
type: item.tp || 'client'
},
fields: Object.assign({
message: item.msg,
... ...
... ... @@ -87,6 +87,7 @@ module.exports = (req, res, next) => {
}
switch (item.tp) {
case 'yas_err':
case 'err': {
handleClientError(scope, item);
break;
... ...