Просмотр исходного кода

Merge pull request #2737 from overleaf/bg-split-editor-events-metric

split metric for editor events by message type

GitOrigin-RevId: 832b0abf8582138c05b786dcf9114dcdb3a63b91
Brian Gough 6 лет назад
Родитель
Сommit
9639fbf232
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      services/web/app/src/Features/Editor/EditorRealTimeController.js

+ 3 - 1
services/web/app/src/Features/Editor/EditorRealTimeController.js

@@ -39,7 +39,9 @@ module.exports = EditorRealTimeController = {
       payload,
       _id: message_id
     })
-    Metrics.summary('redis.publish.editor-events', blob.length)
+    Metrics.summary('redis.publish.editor-events', blob.length, {
+      status: message
+    })
     return rclient.publish(channel, blob)
   },