Skip to content

Commit

Permalink
[7.x] [APM] Re-revert "Collect telemetry about data/API perfor… (#61065)
Browse files Browse the repository at this point in the history
* Revert "Revert "[APM] Collect telemetry about data/API performance (#51612)""

This reverts commit 6de7f2a.

* Update transaction mock data to reflect the type
  • Loading branch information
dgieselaar authored Mar 24, 2020
1 parent 8d6cd04 commit 44c77ea
Show file tree
Hide file tree
Showing 30 changed files with 2,384 additions and 205 deletions.
19 changes: 15 additions & 4 deletions x-pack/legacy/plugins/apm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ import mappings from './mappings.json';

export const apm: LegacyPluginInitializer = kibana => {
return new kibana.Plugin({
require: ['kibana', 'elasticsearch', 'xpack_main', 'apm_oss'],
require: [
'kibana',
'elasticsearch',
'xpack_main',
'apm_oss',
'task_manager'
],
id: 'apm',
configPrefix: 'xpack.apm',
publicDir: resolve(__dirname, 'public'),
Expand Down Expand Up @@ -76,7 +82,10 @@ export const apm: LegacyPluginInitializer = kibana => {
serviceMapTraceIdBucketSize: Joi.number().default(65),
serviceMapFingerprintGlobalBucketSize: Joi.number().default(1000),
serviceMapTraceIdGlobalBucketSize: Joi.number().default(6),
serviceMapMaxTracesPerRequest: Joi.number().default(50)
serviceMapMaxTracesPerRequest: Joi.number().default(50),

// telemetry
telemetryCollectionEnabled: Joi.boolean().default(true)
}).default();
},

Expand Down Expand Up @@ -122,10 +131,12 @@ export const apm: LegacyPluginInitializer = kibana => {
}
}
});

const apmPlugin = server.newPlatform.setup.plugins
.apm as APMPluginContract;
apmPlugin.registerLegacyAPI({ server });

apmPlugin.registerLegacyAPI({
server
});
}
});
};
Loading

0 comments on commit 44c77ea

Please sign in to comment.