mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 00:51:47 +00:00
95f3bcef21
- renamed package from `metrics-sharelatex` to `@overleaf/metrics` - drop support for statsd backend - decaffeinate - compress `/metrics` response using gzip - bump debugging agents to latest versions - expose prometheus interfaces for custom metrics (custom tags) - cleanup of open sockets metrics - fix deprecation warnings for header access
10 lines
335 B
JavaScript
10 lines
335 B
JavaScript
const settings = require('settings-sharelatex')
|
|
|
|
const persistorSettings = settings.filestore
|
|
persistorSettings.Metrics = require('@overleaf/metrics')
|
|
persistorSettings.paths = settings.path
|
|
|
|
const ObjectPersistor = require('@overleaf/object-persistor')
|
|
const persistor = ObjectPersistor(persistorSettings)
|
|
|
|
module.exports = persistor
|