[Lens] Replace scripted metric with scripted terms aggregation #70459
Labels
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
technical debt
Improvement of the software architecture and operational architecture
In the Lens telemetry we are using a slow-running scripted metric query: https://github.com/elastic/kibana/blob/master/x-pack/plugins/lens/server/usage/visualization_counts.ts#L10
This query can be replaced by a terms aggregation with script, where the script is used to calculate just the term. I believe the entire script we want is:
The text was updated successfully, but these errors were encountered: