Merge pull request #42 from sharelatex/bg-add-event-metric

add metric for applied-ops events
This commit is contained in:
Brian Gough 2019-04-11 15:50:15 +01:00 committed by GitHub
commit 8006e4f2d5

View file

@ -15,6 +15,7 @@ module.exports = DocumentUpdaterController =
listenForUpdatesFromDocumentUpdater: (io) ->
rclient.subscribe "applied-ops"
rclient.on "message", (channel, message) ->
metrics.inc "rclient", 0.001 # global event rate metric
EventLogger.debugEvent(channel, message) if settings.debugEvents > 0
DocumentUpdaterController._processMessageFromDocumentUpdater(io, channel, message)