Merge pull request #19455 from overleaf/jpa-metrics

[misc] add metrics for document processing/broadcasting

GitOrigin-RevId: d81de0dfb7a91863547631580f3c85f569718130
This commit is contained in:
Jakob Ackermann
2024-07-18 15:01:09 +02:00
committed by Copybot
parent 7f68ac7328
commit f9fd5fcd46
23 changed files with 280 additions and 71 deletions

View File

@@ -15,7 +15,9 @@ describe('HttpController', function () {
'./ProjectManager': (this.ProjectManager = {}),
'./ProjectFlusher': { flushAllProjects() {} },
'./DeleteQueueManager': (this.DeleteQueueManager = {}),
'./RedisManager': (this.RedisManager = {}),
'./RedisManager': (this.RedisManager = {
DOC_OPS_TTL: 42,
}),
'./Metrics': (this.Metrics = {}),
'./Errors': Errors,
'@overleaf/settings': { max_doc_length: 2 * 1024 * 1024 },
@@ -84,6 +86,7 @@ describe('HttpController', function () {
ops: [],
ranges: this.ranges,
pathname: this.pathname,
ttlInS: 42,
})
.should.equal(true)
})
@@ -134,6 +137,7 @@ describe('HttpController', function () {
ops: this.ops,
ranges: this.ranges,
pathname: this.pathname,
ttlInS: 42,
})
.should.equal(true)
})