mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 14:34:14 +00:00
Merge pull request #14294 from overleaf/tw-docupdater-flush
add metric to confirm what fraction of flush operations are unnecessary GitOrigin-RevId: 29cff245de56da2cf6c10603570378ee97f00eb7
This commit is contained in:
parent
6db48cdaa3
commit
277fe530ad
1 changed files with 3 additions and 0 deletions
|
@ -296,6 +296,9 @@ module.exports = DocumentManager = {
|
|||
callback(null)
|
||||
} else {
|
||||
logger.debug({ projectId, docId, version }, 'flushing doc')
|
||||
Metrics.inc('flush-doc-if-loaded', {
|
||||
status: unflushedTime != null ? 'modified' : 'unmodified',
|
||||
})
|
||||
PersistenceManager.setDoc(
|
||||
projectId,
|
||||
docId,
|
||||
|
|
Loading…
Reference in a new issue