diff --git a/x-pack/plugins/observability_solution/exploratory_view/public/components/shared/exploratory_view/hooks/use_ebt_telemetry.ts b/x-pack/plugins/observability_solution/exploratory_view/public/components/shared/exploratory_view/hooks/use_ebt_telemetry.ts index 93f1b2fe7bc630..f38fc58dcd2075 100644 --- a/x-pack/plugins/observability_solution/exploratory_view/public/components/shared/exploratory_view/hooks/use_ebt_telemetry.ts +++ b/x-pack/plugins/observability_solution/exploratory_view/public/components/shared/exploratory_view/hooks/use_ebt_telemetry.ts @@ -22,7 +22,8 @@ export const useEBTTelemetry = ({ if (requests && analytics) { const listReq = requests.getRequests(); if (listReq.length > 0) { - // find the highest query time + // find the highest query time, since a lens chart can contains more than on query, it doesn't make sense to + // report all of them , only the query with highest latency needs to be reported const duration = listReq.reduce((acc, req) => { const queryTime = Number(req.stats?.queryTime.value.split('ms')?.[0]); return queryTime > acc ? queryTime : acc;