Skip to content

Commit

Permalink
chore: add IS_KIBANA_DISTRIBUTABLE flag back
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshanmugam committed May 20, 2020
1 parent 288db81 commit f063c7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/public/entry_point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const injectedMetadata = JSON.parse(
);

/**
* If APM RUM agent is enabled while starting the server,
* `apmConfig` would be populated with relavant configuration
* `apmConfig` would be populated with relavant APM RUM agent
* configuration if server is started with `ELASTIC_APM_ACTIVE=true`
*/
if (injectedMetadata.vars.apmConfig != null) {
if (process.env.IS_KIBANA_DISTRIBUTABLE !== 'true' && injectedMetadata.vars.apmConfig != null) {
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { init } = require('@elastic/apm-rum');
Expand Down

0 comments on commit f063c7e

Please sign in to comment.