mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 20:39:36 -05:00
down-sample valid events by 1000
This commit is contained in:
parent
e91b967bdb
commit
1ab5e52699
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module.exports = EventLogger =
|
||||||
# store the last count in a hash for each host
|
# store the last count in a hash for each host
|
||||||
previous = EventLogger._storeEventCount(key, count)
|
previous = EventLogger._storeEventCount(key, count)
|
||||||
if !previous? || count == (previous + 1)
|
if !previous? || count == (previous + 1)
|
||||||
metrics.inc "event.#{channel}.valid"
|
metrics.inc "event.#{channel}.valid", 0.001
|
||||||
return # order is ok
|
return # order is ok
|
||||||
if (count == previous)
|
if (count == previous)
|
||||||
metrics.inc "event.#{channel}.duplicate"
|
metrics.inc "event.#{channel}.duplicate"
|
||||||
|
|
Loading…
Reference in a new issue