elastic / kibana

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

[Dashboards][Telemetry] Dashboard loaded event is emitted before the dashboard is rendered for some journeys #193907

Open thomasneirynck opened 2 hours ago

thomasneirynck commented 2 hours ago

Kibana version:

main

Describe the bug:

The kibana_loaded event is fired multiple times for the web_logs_dashboard_esql and flight_dashboard journeys. The first time it is emitted much too early. This is a bug.

This was likely introduced on Sept 10 with https://github.com/elastic/kibana/pull/192221.

e.g. note how after 9/10, the event is starting to get collected twice consistently. (the jittery peaks and values are due to test runs)

Image

Steps to reproduce:

  1. Run the web_logs_dashboard_esql or flight_dashboard journey dashboard
  2. Note the kibana_loaded event is fired twice

Expected behavior:

The event should only be emitted when the dashboard has completed rendering.

elasticmachine commented 2 hours ago

Pinging @elastic/kibana-presentation (Team:Presentation)