mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
set build version via env var and bump build version
This commit is contained in:
parent
7a227adaeb
commit
425a6f55ff
2 changed files with 5 additions and 3 deletions
|
@ -22,12 +22,14 @@ module.exports = Metrics =
|
|||
appname = _name
|
||||
collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()})
|
||||
if process.env['ENABLE_TRACE_AGENT'] == "true"
|
||||
traceAgent.start()
|
||||
traceOpts =
|
||||
ignoreUrls: [/^\/status/, /^\/health_check/]
|
||||
traceAgent.start(traceOpts)
|
||||
debugAgent.start({
|
||||
serviceContext: {
|
||||
allowExpressions: true,
|
||||
service: appname,
|
||||
version: '0.0.1'
|
||||
version: process.env['BUILD_VERSION']
|
||||
}
|
||||
})
|
||||
Metrics.inc("process_startup")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "metrics-sharelatex",
|
||||
"version": "2.0.8",
|
||||
"version": "2.0.9",
|
||||
"description": "A drop-in metrics and monitoring module for node.js apps",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Reference in a new issue