[Discover][Traces] Showing Logs in context of the trace#232784
[Discover][Traces] Showing Logs in context of the trace#232784kpatticha merged 36 commits intoelastic:mainfrom
Conversation
..._viewer/public/components/observability/traces/components/trace_context_log_events/index.tsx
Outdated
Show resolved
Hide resolved
@kpatticha is it possible to set a max height so we don't scroll like this covering the whole flyout content? Another question:
Asking because for Span links I'm not showing the section in case there's no links available. |
Yes we can set up max-height. I will update it
This is the inconsistency I was talking. The LazySavedSearchComponent handles the states and at the moment it doesn’t provide a callback for consumers to know whether data is available. If we want to address this, it would be better to create a separate ticket. |
cauemarcondes
left a comment
There was a problem hiding this comment.
LGTM, just some nits
..._viewer/public/components/observability/traces/components/trace_context_log_events/index.tsx
Show resolved
Hide resolved
..._viewer/public/components/observability/traces/components/trace_context_log_events/index.tsx
Outdated
Show resolved
Hide resolved
afharo
left a comment
There was a problem hiding this comment.
kibana.jsonc reformatted. No real changes. LGTM
davismcphee
left a comment
There was a problem hiding this comment.
Code-only review, Data Discovery changes LGTM. Just one mock related request from my end.
src/platform/plugins/shared/data/common/search/search_source/mocks.ts
Outdated
Show resolved
Hide resolved
@cauemarcondes I wanted to try this on your Span Links PR before asking, but I still don’t know how to set up the data for it (I left a comment suggesting it could be added as a “How to test” section in the description). So, does this mean that we see the section with a loading state and then it disappears? |
Are you asking for the Span links section ? The easiest way is to run the span_links scenario that generates some links. You can filter Based on the code: https://github.com/elastic/kibana/pull/232135/files#diff-741b102730d177939f71f243f6b836eb3db1104f3291eeb2e6b933066003a88bR116-R121 the section doesn't render |
Thank you @kpatticha! Apparently, I didn’t check the list of available scenarios carefully enough.
I decided to check it locally, and that makes sense since we don’t really show any loader for it, instead, the section just suddenly renders once the request is resolved. Screen.Recording.2025-08-29.at.11.56.11.movIt’s true that this section remains out of the user’s view unless they scroll, but I’m not sure this is the best practice. And sorry for hijacking this PR to talk about the other one, but I think we could decide on a unified approach for all sections. |
No prob, these are valid points. This falls under the topic I previously shared regarding the state in the flyout, and I’ve created a design ticket to address it as we move forward. |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Public APIs missing exports
Page load bundle
History
|
## Summary closes elastic#232249 https://github.com/user-attachments/assets/d83da581-fd55-40bb-a45f-aa0ef9e8f9f3 | Empty State | With Data | |------------|-----------| | <img width="2500" height="1340" alt="Screenshot 2025-08-25 at 4 02 58 PM" src="https://github.com/user-attachments/assets/ec3388a5-fe21-4cb6-a8d4-061d01108d85" /> | <img width="2500" height="1340" alt="Screenshot 2025-08-25 at 4 02 14 PM" src="https://github.com/user-attachments/assets/621a7bbc-bd85-4654-b508-a4df1695cdb9" /> ### How to test 1. Make sure nav type is observability 2. select APM data view 3. open any transaction/span ### TODO - [x] fix storybook ### Notes for reviewers - This PR registers the log events component as feature in discover cause this [circular dependency](elastic#233132) is blocking me from using the component directly in the doc_viewer --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary closes elastic#232249 https://github.com/user-attachments/assets/d83da581-fd55-40bb-a45f-aa0ef9e8f9f3 | Empty State | With Data | |------------|-----------| | <img width="2500" height="1340" alt="Screenshot 2025-08-25 at 4 02 58 PM" src="https://github.com/user-attachments/assets/ec3388a5-fe21-4cb6-a8d4-061d01108d85" /> | <img width="2500" height="1340" alt="Screenshot 2025-08-25 at 4 02 14 PM" src="https://github.com/user-attachments/assets/621a7bbc-bd85-4654-b508-a4df1695cdb9" /> ### How to test 1. Make sure nav type is observability 2. select APM data view 3. open any transaction/span ### TODO - [x] fix storybook ### Notes for reviewers - This PR registers the log events component as feature in discover cause this [circular dependency](elastic#233132) is blocking me from using the component directly in the doc_viewer --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary closes elastic#232249 https://github.com/user-attachments/assets/d83da581-fd55-40bb-a45f-aa0ef9e8f9f3 | Empty State | With Data | |------------|-----------| | <img width="2500" height="1340" alt="Screenshot 2025-08-25 at 4 02 58 PM" src="https://github.com/user-attachments/assets/ec3388a5-fe21-4cb6-a8d4-061d01108d85" /> | <img width="2500" height="1340" alt="Screenshot 2025-08-25 at 4 02 14 PM" src="https://github.com/user-attachments/assets/621a7bbc-bd85-4654-b508-a4df1695cdb9" /> ### How to test 1. Make sure nav type is observability 2. select APM data view 3. open any transaction/span ### TODO - [x] fix storybook ### Notes for reviewers - This PR registers the log events component as feature in discover cause this [circular dependency](elastic#233132) is blocking me from using the component directly in the doc_viewer --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>


Summary
closes #232249
Screen.Recording.2025-08-25.at.3.59.28.PM.mov
How to test
TODO
Notes for reviewers