mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #157 from overleaf/jpa-download-failed-metric
[misc] add a metric for failing downloads
This commit is contained in:
commit
bb9e8bb6f5
2 changed files with 2 additions and 0 deletions
|
@ -324,6 +324,7 @@ module.exports = ResourceWriter = {
|
||||||
},
|
},
|
||||||
'error downloading file for resources'
|
'error downloading file for resources'
|
||||||
)
|
)
|
||||||
|
Metrics.inc('download-failed')
|
||||||
}
|
}
|
||||||
return callback()
|
return callback()
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ describe('ResourceWriter', function() {
|
||||||
'./OutputFileFinder': (this.OutputFileFinder = {}),
|
'./OutputFileFinder': (this.OutputFileFinder = {}),
|
||||||
'logger-sharelatex': { log: sinon.stub(), err: sinon.stub() },
|
'logger-sharelatex': { log: sinon.stub(), err: sinon.stub() },
|
||||||
'./Metrics': (this.Metrics = {
|
'./Metrics': (this.Metrics = {
|
||||||
|
inc: sinon.stub(),
|
||||||
Timer: (Timer = (function() {
|
Timer: (Timer = (function() {
|
||||||
Timer = class Timer {
|
Timer = class Timer {
|
||||||
static initClass() {
|
static initClass() {
|
||||||
|
|
Loading…
Reference in a new issue