From 3326832e97a732f05d711faed4cc6ed4ef42ebc4 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Sun, 3 Sep 2017 15:00:04 +0100 Subject: [PATCH] remove newrelic integration --- index.js | 4 -- newrelic.js | 19 ------ package-lock.json | 143 ---------------------------------------------- package.json | 1 - 4 files changed, 167 deletions(-) delete mode 100644 newrelic.js diff --git a/index.js b/index.js index 5e48f71..2df842a 100644 --- a/index.js +++ b/index.js @@ -6,10 +6,6 @@ var cors = require('cors'); var bodyParser = require('body-parser'); var app = express(); -if(app.get('env') != 'development') { - require('newrelic'); -} - app.use(bodyParser.json()); app.use(bodyParser.urlencoded({extended: true})); app.use(cors({credentials: true, origin: true})); diff --git a/newrelic.js b/newrelic.js deleted file mode 100644 index e91c51f..0000000 --- a/newrelic.js +++ /dev/null @@ -1,19 +0,0 @@ -var config = require('./lib/config'); -exports.config = { - /** - * Array of application names. - */ - app_name: ['My Application'], - /** - * Your New Relic license key. - */ - license_key: config.newrelic.key, - logging: { - /** - * Level at which to log. 'trace' is most useful to New Relic when diagnosing - * issues with the agent, 'info' and higher will impose the least overhead on - * production applications. - */ - level: 'info' - } -} diff --git a/package-lock.json b/package-lock.json index 748c88e..0ec2c28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1823,149 +1823,6 @@ "inherits": "2.0.3" } }, - "newrelic": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/newrelic/-/newrelic-1.40.0.tgz", - "integrity": "sha1-JUjfFMRB6/ydO465idE397aaHW8=", - "requires": { - "concat-stream": "1.6.0", - "https-proxy-agent": "0.3.6", - "json-stringify-safe": "5.0.1", - "readable-stream": "1.1.14", - "semver": "5.3.0" - }, - "dependencies": { - "concat-stream": { - "version": "1.6.0", - "bundled": true, - "requires": { - "inherits": "2.0.3", - "readable-stream": "2.2.11", - "typedarray": "0.0.6" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "bundled": true - }, - "readable-stream": { - "version": "2.2.11", - "bundled": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.0.1", - "string_decoder": "1.0.2", - "util-deprecate": "1.0.2" - }, - "dependencies": { - "core-util-is": { - "version": "1.0.2", - "bundled": true - }, - "isarray": { - "version": "1.0.0", - "bundled": true - }, - "process-nextick-args": { - "version": "1.0.7", - "bundled": true - }, - "safe-buffer": { - "version": "5.0.1", - "bundled": true - }, - "string_decoder": { - "version": "1.0.2", - "bundled": true, - "requires": { - "safe-buffer": "5.0.1" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true - } - } - }, - "typedarray": { - "version": "0.0.6", - "bundled": true - } - } - }, - "https-proxy-agent": { - "version": "0.3.6", - "bundled": true, - "requires": { - "agent-base": "1.0.2", - "debug": "2.6.8", - "extend": "3.0.1" - }, - "dependencies": { - "agent-base": { - "version": "1.0.2", - "bundled": true - }, - "debug": { - "version": "2.6.8", - "bundled": true, - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "bundled": true - } - } - }, - "extend": { - "version": "3.0.1", - "bundled": true - } - } - }, - "json-stringify-safe": { - "version": "5.0.1", - "bundled": true - }, - "readable-stream": { - "version": "1.1.14", - "bundled": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" - }, - "dependencies": { - "core-util-is": { - "version": "1.0.2", - "bundled": true - }, - "inherits": { - "version": "2.0.3", - "bundled": true - }, - "isarray": { - "version": "0.0.1", - "bundled": true - }, - "string_decoder": { - "version": "0.10.31", - "bundled": true - } - } - }, - "semver": { - "version": "5.3.0", - "bundled": true - } - } - }, "node-forge": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.1.tgz", diff --git a/package.json b/package.json index fc75527..fa8c50f 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "lodash": "^3.10.1", "moment": "^2.18.1", "morgan": "^1.5.1", - "newrelic": "^1.18.0", "node-twitter": "0.5.2", "stripe": "^4.23.1", "superagent": "^2.0.0",