From f3f12c6d2db9a387911e4d1d1cca8de2ab8142d6 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Fri, 30 Sep 2016 07:34:12 -0700 Subject: [PATCH] Add more information to activity events Reviewed By: matryoshcow Differential Revision: D3950787 fbshipit-source-id: b6ac22027380a9f7cc7bcb39ecd33d5c9255301f --- react-packager/src/Bundler/index.js | 1 + react-packager/src/Server/index.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/react-packager/src/Bundler/index.js b/react-packager/src/Bundler/index.js index 2e3116a0..f03d67b3 100644 --- a/react-packager/src/Bundler/index.js +++ b/react-packager/src/Bundler/index.js @@ -369,6 +369,7 @@ class Bundler { null, { telemetric: true, + entryPoint: entryFile, }, ); const modulesByName = Object.create(null); diff --git a/react-packager/src/Server/index.js b/react-packager/src/Server/index.js index 6159452f..d82fa80d 100644 --- a/react-packager/src/Server/index.js +++ b/react-packager/src/Server/index.js @@ -635,6 +635,7 @@ class Server { return; } + const options = this._getOptionsFromUrl(req.url); const startReqEventId = Activity.startEvent( 'Requesting bundle', { @@ -642,9 +643,10 @@ class Server { }, { telemetric: true, + entryPoint: options.entryFile, + details: req.url, }, ); - const options = this._getOptionsFromUrl(req.url); debug('Getting bundle for request'); const building = this._useCachedOrUpdateOrCreateBundle(options); building.then(