elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.8k stars 8.19k forks source link

[ES|QL] Improve the last duration calculation in the history component #188434

Open stratoula opened 3 months ago

stratoula commented 3 months ago

Describe the feature:

Clicking on "Recent queries" inside the ES|QL input shows inaccurate durations (on the order of 2ms instead of something like 10s) for long running queries.

image

We need to rethink how to calculate these numbers (or ask from ES to return us the number) instead of trying to calculate them in the client side.

elasticmachine commented 3 months ago

Pinging @elastic/kibana-esql (Team:ESQL)

stratoula commented 3 months ago

I synced with ES, they are going to provide us the time in the api https://github.com/elastic/elasticsearch/issues/110935

IanLee1521 commented 2 months ago

FWIW, this is related to the issue I opened at https://github.com/elastic/kibana/issues/187051 about providing the wall clock time of queries.

stratoula commented 3 weeks ago

Blocked by https://github.com/elastic/elasticsearch/issues/110935

stratoula commented 2 weeks ago

Here is the related ES PR https://github.com/elastic/elasticsearch/pull/112595