Skip to content

Commit

Permalink
Setup Node.js environment before instrumenting Kibana with APM. (elas…
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin authored Apr 19, 2023
1 parent 9ec31d0 commit eb90e40
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 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');
1 change: 0 additions & 1 deletion src/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"@kbn/config",
"@kbn/dev-utils",
"@kbn/apm-config-loader",
"@kbn/babel-register",
],
"exclude": [
"target/**/*",
Expand Down

0 comments on commit eb90e40

Please sign in to comment.