mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 16:33:16 +00:00
Merge pull request #42 from sharelatex/bg-add-event-metric
add metric for applied-ops events
This commit is contained in:
commit
8006e4f2d5
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue