Skip to content

[Telemetry] Migrate to the new Elasticsearch client #74840

@afharo

Description

@afharo

Migration guide: https://github.com/elastic/kibana/blob/master/src/core/MIGRATION_EXAMPLES.md#elasticsearch-client; breaking changes: https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/breaking-changes.html

Question regarding the callCluster method provided to the collectors: Should we replace it with { callCluster (with the deprecated flag), esClient (the new one), savedObjects }?

It is a breaking change, but it will also force the other plugins to adapt their logic to the new esClient if needed.

And, by providing savedObjects, collectors will have a "properly-scoped" SO client when retrieving the usage data.

Metadata

Metadata

Assignees

Labels

Feature:TelemetryTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions