-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens][Telemetry] Track Elasticsearch took
time in Lens editor
#192245
[Lens][Telemetry] Track Elasticsearch took
time in Lens editor
#192245
Conversation
d056529
to
b3ff7fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve it.
Left a nit code comment, but def not a blocker.
...ck/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
thanks @markov00 ! I added some additional information here #189396 (comment). Ideally, we can collect this metric in all contexts where Lens is rendered. |
## Summary Similar to #192245, this adds request-time to the Lens Embeddable. This would allow to track these metrics anywhere where Lens is embedded. This is particularly important for Lens embedded in a Dashboard since all performance journeys are written against Dashboards. ### Checklist Delete any items that are not applicable to this PR. - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
## Summary Similar to elastic#192245, this adds request-time to the Lens Embeddable. This would allow to track these metrics anywhere where Lens is embedded. This is particularly important for Lens embedded in a Dashboard since all performance journeys are written against Dashboards. ### Checklist Delete any items that are not applicable to this PR. - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> (cherry picked from commit 682afb7)
… (#193740) # Backport This will backport the following commits from `main` to `8.x`: - [[Lens] Add ES-request time telemetry to Lens embeddable (#192743)](#192743) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Thomas Neirynck","email":"thomas@elastic.co"},"sourceCommit":{"committedDate":"2024-09-20T13:24:19Z","message":"[Lens] Add ES-request time telemetry to Lens embeddable (#192743)\n\n## Summary\r\n\r\nSimilar to #192245, this adds\r\nrequest-time to the Lens Embeddable. This would allow to track these\r\nmetrics anywhere where Lens is embedded.\r\n\r\nThis is particularly important for Lens embedded in a Dashboard since\r\nall performance journeys are written against Dashboards.\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [x] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Marco Vettorello <vettorello.marco@gmail.com>","sha":"682afb7d8cf2712c2a4d3c64820e4baf2af100bf","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","telemetry","v8.16.0","backport:version"],"title":"[Lens] Add ES-request time telemetry to Lens embeddable","number":192743,"url":"https://github.com/elastic/kibana/pull/192743","mergeCommit":{"message":"[Lens] Add ES-request time telemetry to Lens embeddable (#192743)\n\n## Summary\r\n\r\nSimilar to #192245, this adds\r\nrequest-time to the Lens Embeddable. This would allow to track these\r\nmetrics anywhere where Lens is embedded.\r\n\r\nThis is particularly important for Lens embedded in a Dashboard since\r\nall performance journeys are written against Dashboards.\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [x] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Marco Vettorello <vettorello.marco@gmail.com>","sha":"682afb7d8cf2712c2a4d3c64820e4baf2af100bf"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192743","number":192743,"mergeCommit":{"message":"[Lens] Add ES-request time telemetry to Lens embeddable (#192743)\n\n## Summary\r\n\r\nSimilar to #192245, this adds\r\nrequest-time to the Lens Embeddable. This would allow to track these\r\nmetrics anywhere where Lens is embedded.\r\n\r\nThis is particularly important for Lens embedded in a Dashboard since\r\nall performance journeys are written against Dashboards.\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [x] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Marco Vettorello <vettorello.marco@gmail.com>","sha":"682afb7d8cf2712c2a4d3c64820e4baf2af100bf"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Thomas Neirynck <thomas@elastic.co>
Summary
This implements the requirement to separate ES query time from the
time_to_data
telemetry. It currently separates only the Elasticsearchtook
time available in the response and works only in the EBT performance journey for the Lens Editor implemented in #163412.