mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 06:13:34 -05:00
update to new metrics api
This commit is contained in:
parent
64fc6ef2e3
commit
c6dd68a3e6
1 changed files with 5 additions and 11 deletions
|
@ -31,14 +31,8 @@ module.exports = ContactManager =
|
|||
return callback(error) if error?
|
||||
callback null, user?.contacts
|
||||
|
||||
metrics.timeAsyncMethod(
|
||||
ContactManager, 'touchContact',
|
||||
'ContactManager.touchContact',
|
||||
logger
|
||||
)
|
||||
|
||||
metrics.timeAsyncMethod(
|
||||
ContactManager, 'getContacts',
|
||||
'ContactManager.getContacts',
|
||||
logger
|
||||
)
|
||||
[
|
||||
'touchContact',
|
||||
'getContacts',
|
||||
].map (method) ->
|
||||
metrics.timeAsyncMethod(ContactManager, method, 'mongo.ContactManager', logger)
|
||||
|
|
Loading…
Reference in a new issue