[APM] Expose APM event client as part of plugin contract (#82724)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Dario Gieselaar 2020-11-09 13:46:46 +01:00 committed by GitHub
parent 6110ef82a3
commit 858befef44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 14 deletions

View file

@ -88,7 +88,8 @@ export async function setupRequest<TParams extends SetupRequestParams>(
const coreSetupRequest = {
indices,
apmEventClient: createApmEventClient({
context,
esClient: context.core.elasticsearch.legacy.client,
debug: context.params.query._debug,
request,
indices,
options: { includeFrozen },