mirror of
https://git.sleeping.town/mirrors/foxy-moxy
synced 2024-11-21 11:37:43 +00:00
[BC-795] Add APM to foxy-moxy
This commit is contained in:
parent
1b95c4c794
commit
b2eba9af95
2 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
||||||
"canvas": "^2.0.1",
|
"canvas": "^2.0.1",
|
||||||
"chance": "^1.0.16",
|
"chance": "^1.0.16",
|
||||||
"connect-datadog": "*",
|
"connect-datadog": "*",
|
||||||
|
"dd-trace": "^0.15.4",
|
||||||
"express": "^4.16.4",
|
"express": "^4.16.4",
|
||||||
"express-cluster": "0.0.4",
|
"express-cluster": "0.0.4",
|
||||||
"node-gyp": "^3.8.0",
|
"node-gyp": "^3.8.0",
|
||||||
|
|
3
run.js
3
run.js
|
@ -1,3 +1,6 @@
|
||||||
|
if (process.env.CI !== 'true') {
|
||||||
|
require('dd-trace').init({service: 'foxy-moxy'})
|
||||||
|
}
|
||||||
const cluster = require('express-cluster')
|
const cluster = require('express-cluster')
|
||||||
const app = require('./server.js')
|
const app = require('./server.js')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue