Skip to content

Commit

Permalink
removing spm, nodetime, trace, updating newrelic
Browse files Browse the repository at this point in the history
  • Loading branch information
btouellette committed Aug 3, 2020
1 parent f5c7710 commit eb9c503
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "concarneau",
"main": "server.js",
"dependencies": {
"@risingstack/trace": "^2.36.0",
"bcrypt-nodejs": "latest",
"body-parser": "^1.17.2",
"compression": "^1.7.0",
Expand All @@ -17,10 +16,9 @@
"helmet": "^3.8.1",
"mongoose": "^5.9.24",
"moniker": "^0.1.2",
"newrelic": "^2.0.2",
"newrelic": "^6.11.0",
"nodemailer": "^2.7.2",
"nodemailer-smtp-transport": "^2.7.4",
"nodetime": "^0.8.17",
"passport": "^0.3.2",
"passport-facebook": "^2.1.1",
"passport-google-oauth": "^1.0.0",
Expand All @@ -29,7 +27,6 @@
"q": "^2.0.3",
"raven": "^0.12.3",
"socket.io": "^2.0.3",
"spm-agent-nodejs": "^1.30.9",
"tunnel": "^0.0.4",
"twit": "^2.2.9",
"xoauth2": "^1.2.0",
Expand Down
14 changes: 1 addition & 13 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,10 @@ if(process.env.C9_PROJECT/* && !process.env.MONGOLAB_URI*/) {
require('./config/c9');
}

// if configured to use trace, nodetime, spm, or newrelic connect to it
if(process.env.TRACE_SERVICE_NAME) {
require('@risingstack/trace');
}
// if configured to use newrelic connect to it
if(process.env.NEW_RELIC_LICENSE_KEY) {
require('newrelic');
}
if(process.env.SPM_TOKEN) {
require ('spm-agent-nodejs');
}
if(process.env.NODETIME_ACCOUNT_KEY) {
require('nodetime').profile({
accountKey: process.env.NODETIME_ACCOUNT_KEY,
appName: 'Concarneau'
});
}

var port = process.env.PORT || 8080;

Expand Down

0 comments on commit eb9c503

Please sign in to comment.