Skip to content

Commit

Permalink
Setup Node.js environment before instrumeting Kibana with APM.
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Apr 17, 2023
1 parent bcfe4b0 commit 376d2b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/cli/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Side Public License, v 1.
*/

require('@kbn/babel-register').install();
require('./apm')(process.env.ELASTIC_APM_SERVICE_NAME || 'kibana-proxy');
require('../setup_node_env');
require('./apm')(process.env.ELASTIC_APM_SERVICE_NAME || 'kibana-proxy');
require('./cli');
2 changes: 1 addition & 1 deletion src/cli/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Side Public License, v 1.
*/

require('./apm')();
require('../setup_node_env/dist');
require('./apm')();
require('../setup_node_env/root');
require('./cli');

0 comments on commit 376d2b4

Please sign in to comment.