mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Revert metric, deleted after merge 724583100b619b2d11cbc44adaf7f47e7aaa894f; Fix bug 71746
This commit is contained in:
@ -1767,6 +1767,13 @@ exports.install = function(server, callbackFunction) {
|
||||
ctx.logger.debug("unknown command %j", data);
|
||||
break;
|
||||
}
|
||||
|
||||
if (clientStatsD) {
|
||||
let isSendMetric = 'auth' === data.type || 'getLock' === data.type || 'saveChanges' === data.type;
|
||||
if (isSendMetric) {
|
||||
clientStatsD.timing('coauth.data.' + data.type, new Date() - startDate);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
ctx.logger.error("error receiving response: type = %s %s", (data && data.type) ? data.type : 'null', e.stack);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user