|
@@ -22,12 +22,14 @@ module.exports = Metrics =
|
|
|
appname = _name
|
|
appname = _name
|
|
|
collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()})
|
|
collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()})
|
|
|
if process.env['ENABLE_TRACE_AGENT'] == "true"
|
|
if process.env['ENABLE_TRACE_AGENT'] == "true"
|
|
|
- traceAgent.start()
|
|
|
|
|
|
|
+ traceOpts =
|
|
|
|
|
+ ignoreUrls: [/^\/status/, /^\/health_check/]
|
|
|
|
|
+ traceAgent.start(traceOpts)
|
|
|
debugAgent.start({
|
|
debugAgent.start({
|
|
|
serviceContext: {
|
|
serviceContext: {
|
|
|
allowExpressions: true,
|
|
allowExpressions: true,
|
|
|
service: appname,
|
|
service: appname,
|
|
|
- version: '0.0.1'
|
|
|
|
|
|
|
+ version: process.env['BUILD_VERSION']
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
Metrics.inc("process_startup")
|
|
Metrics.inc("process_startup")
|