[BC-795] Add APM to foxy-moxy

This commit is contained in:
Amber Schenck 2019-10-14 17:11:35 -07:00 committed by Patreon-Amber
parent 1b95c4c794
commit b2eba9af95
2 changed files with 4 additions and 0 deletions

View file

@ -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
View file

@ -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')