mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #138 from overleaf/jpa-bump-metrics-module
[misc] bump metrics module to 3.4.1
This commit is contained in:
commit
9f32b9f66e
13 changed files with 728 additions and 826 deletions
|
@ -1,4 +1,4 @@
|
||||||
const Metrics = require('metrics-sharelatex')
|
const Metrics = require('@overleaf/metrics')
|
||||||
Metrics.initialize(process.env.METRICS_APP_NAME || 'filestore')
|
Metrics.initialize(process.env.METRICS_APP_NAME || 'filestore')
|
||||||
|
|
||||||
const logger = require('logger-sharelatex')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const PersistorManager = require('./PersistorManager')
|
const PersistorManager = require('./PersistorManager')
|
||||||
const FileHandler = require('./FileHandler')
|
const FileHandler = require('./FileHandler')
|
||||||
const metrics = require('metrics-sharelatex')
|
const metrics = require('@overleaf/metrics')
|
||||||
const parseRange = require('range-parser')
|
const parseRange = require('range-parser')
|
||||||
const Errors = require('./Errors')
|
const Errors = require('./Errors')
|
||||||
const { pipeline } = require('stream')
|
const { pipeline } = require('stream')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const metrics = require('metrics-sharelatex')
|
const metrics = require('@overleaf/metrics')
|
||||||
const Settings = require('settings-sharelatex')
|
const Settings = require('settings-sharelatex')
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const logger = require('logger-sharelatex')
|
const logger = require('logger-sharelatex')
|
||||||
const metrics = require('metrics-sharelatex')
|
const metrics = require('@overleaf/metrics')
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
const safeExec = require('./SafeExec').promises
|
const safeExec = require('./SafeExec').promises
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ const uuid = require('node-uuid')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const Stream = require('stream')
|
const Stream = require('stream')
|
||||||
const { callbackify, promisify } = require('util')
|
const { callbackify, promisify } = require('util')
|
||||||
const metrics = require('metrics-sharelatex')
|
const metrics = require('@overleaf/metrics')
|
||||||
const Settings = require('settings-sharelatex')
|
const Settings = require('settings-sharelatex')
|
||||||
const { WriteError } = require('./Errors')
|
const { WriteError } = require('./Errors')
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const settings = require('settings-sharelatex')
|
const settings = require('settings-sharelatex')
|
||||||
|
|
||||||
const persistorSettings = settings.filestore
|
const persistorSettings = settings.filestore
|
||||||
persistorSettings.Metrics = require('metrics-sharelatex')
|
persistorSettings.Metrics = require('@overleaf/metrics')
|
||||||
persistorSettings.paths = settings.path
|
persistorSettings.paths = settings.path
|
||||||
|
|
||||||
const ObjectPersistor = require('@overleaf/object-persistor')
|
const ObjectPersistor = require('@overleaf/object-persistor')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const logger = require('logger-sharelatex')
|
const logger = require('logger-sharelatex')
|
||||||
const metrics = require('metrics-sharelatex')
|
const metrics = require('@overleaf/metrics')
|
||||||
|
|
||||||
class RequestLogger {
|
class RequestLogger {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
1530
services/filestore/package-lock.json
generated
1530
services/filestore/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -20,6 +20,7 @@
|
||||||
"test:unit:_run": "mocha --recursive --reporter spec $@ test/unit/js"
|
"test:unit:_run": "mocha --recursive --reporter spec $@ test/unit/js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@overleaf/metrics": "^3.4.1",
|
||||||
"@overleaf/o-error": "^3.0.0",
|
"@overleaf/o-error": "^3.0.0",
|
||||||
"@overleaf/object-persistor": "git+https://github.com/overleaf/object-persistor.git",
|
"@overleaf/object-persistor": "git+https://github.com/overleaf/object-persistor.git",
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
|
@ -28,7 +29,6 @@
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"lodash.once": "^4.1.1",
|
"lodash.once": "^4.1.1",
|
||||||
"logger-sharelatex": "^2.2.0",
|
"logger-sharelatex": "^2.2.0",
|
||||||
"metrics-sharelatex": "^2.7.0",
|
|
||||||
"node-uuid": "~1.4.8",
|
"node-uuid": "~1.4.8",
|
||||||
"range-parser": "^1.2.1",
|
"range-parser": "^1.2.1",
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
|
|
|
@ -59,7 +59,7 @@ describe('FileController', function () {
|
||||||
'./Errors': Errors,
|
'./Errors': Errors,
|
||||||
stream: stream,
|
stream: stream,
|
||||||
'settings-sharelatex': settings,
|
'settings-sharelatex': settings,
|
||||||
'metrics-sharelatex': {
|
'@overleaf/metrics': {
|
||||||
inc() {}
|
inc() {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('FileConverter', function () {
|
||||||
FileConverter = SandboxedModule.require(modulePath, {
|
FileConverter = SandboxedModule.require(modulePath, {
|
||||||
requires: {
|
requires: {
|
||||||
'./SafeExec': SafeExec,
|
'./SafeExec': SafeExec,
|
||||||
'metrics-sharelatex': {
|
'@overleaf/metrics': {
|
||||||
inc: sinon.stub(),
|
inc: sinon.stub(),
|
||||||
Timer: sinon.stub().returns({ done: sinon.stub() })
|
Timer: sinon.stub().returns({ done: sinon.stub() })
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,7 +20,7 @@ describe('ImageOptimiser', function () {
|
||||||
requires: {
|
requires: {
|
||||||
'./SafeExec': SafeExec,
|
'./SafeExec': SafeExec,
|
||||||
'logger-sharelatex': logger,
|
'logger-sharelatex': logger,
|
||||||
'metrics-sharelatex': {
|
'@overleaf/metrics': {
|
||||||
Timer: sinon.stub().returns({ done: sinon.stub() })
|
Timer: sinon.stub().returns({ done: sinon.stub() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ describe('LocalFileWriter', function () {
|
||||||
fs,
|
fs,
|
||||||
stream,
|
stream,
|
||||||
'settings-sharelatex': settings,
|
'settings-sharelatex': settings,
|
||||||
'metrics-sharelatex': {
|
'@overleaf/metrics': {
|
||||||
inc: sinon.stub(),
|
inc: sinon.stub(),
|
||||||
Timer: sinon.stub().returns({ done: sinon.stub() })
|
Timer: sinon.stub().returns({ done: sinon.stub() })
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue