We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ba952f commit dca668bCopy full SHA for dca668b
1 file changed
x-pack/plugins/apm/server/lib/apm_telemetry/index.ts
@@ -57,7 +57,8 @@ export async function createApmTelemetry({
57
58
const collectAndStore = async () => {
59
const config = await config$.pipe(take(1)).toPromise();
60
- const esClient = core.elasticsearch.dataClient;
+ const [{ elasticsearch }] = await core.getStartServices();
61
+ const esClient = elasticsearch.legacy.client;
62
63
const indices = await getApmIndices({
64
config,
0 commit comments