Skip to content

Commit e64c796

Browse files
committed
fix(newrelic): Fixes newrelic tracking.
1 parent e0b2e48 commit e64c796

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

package-lock.json

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"dotenv": "^5.0.0",
4343
"express": "^4.14.1",
4444
"install": "^0.10.1",
45-
"jscommons": "^2.3.0",
45+
"jscommons": "^2.3.3",
4646
"lodash": "^4.17.4",
4747
"mongodb": "^3.0.2",
4848
"redis": "^2.8.0",

src/server.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import * as sourceMapSupport from 'source-map-support'; // tslint:disable-line:ordered-imports
2-
import './tracker'; // tslint:disable-line:no-import-side-effect
32
sourceMapSupport.install();
43

5-
import * as express from 'express';
4+
import tracker from './tracker';
5+
import * as express from 'express'; // tslint:disable-line:ordered-imports
66
import handleListen from 'jscommons/dist/expressPresenter/utils/handleListen';
77
import app from './apps/app';
88
import config from './config';
99
import logger from './logger';
10-
import tracker from './tracker';
1110
import connectToMongoDb from './utils/connectToMongoDb';
1211

1312
const expressApp = express();

src/tracker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const trackerFactory = async (): Promise<Tracker> => {
99
process.env.NEW_RELIC_NO_CONFIG_FILE = config.tracker.newRelic.noConfigFile;
1010
process.env.NEW_RELIC_LOG = config.tracker.newRelic.log;
1111
process.env.NEW_RELIC_LOG_LEVEL = config.tracker.newRelic.logLevel;
12+
process.env.NEW_RELIC_API_CUSTOM_ATTRIBUTES = 'true';
1213
return newRelicTracker();
1314
}
1415
return fakeTracker;

0 commit comments

Comments
 (0)