Skip to content

Commit

Permalink
addressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jun 14, 2021
1 parent 610aebb commit 1746467
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion x-pack/plugins/apm/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import type {
} from '../../triggers_actions_ui/public';
import { registerApmAlerts } from './components/alerting/register_apm_alerts';
import { featureCatalogueEntry } from './featureCatalogueEntry';
import { createCallApmApi } from './services/rest/createCallApmApi';

export type ApmPluginSetup = ReturnType<ApmPlugin['setup']>;

Expand Down Expand Up @@ -146,6 +145,11 @@ export class ApmPlugin implements Plugin<ApmPluginSetup, ApmPluginStart> {
const { hasFleetApmIntegrations } = await import(
'./services/rest/tutorial_apm_fleet_check'
);

const { createCallApmApi } = await import(
'./services/rest/createCallApmApi'
);

// have to do this here as well in case app isn't mounted yet
createCallApmApi(core);

Expand Down Expand Up @@ -187,6 +191,9 @@ export class ApmPlugin implements Plugin<ApmPluginSetup, ApmPluginStart> {
const { fetchUxOverviewDate, hasRumData } = await import(
'./components/app/RumDashboard/ux_overview_fetchers'
);
const { createCallApmApi } = await import(
'./services/rest/createCallApmApi'
);
// have to do this here as well in case app isn't mounted yet
createCallApmApi(core);

Expand Down

0 comments on commit 1746467

Please sign in to comment.