-
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
[APM] Embeddable Trace Waterfall #216098
[APM] Embeddable Trace Waterfall #216098
Conversation
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
...tion_details/waterfall_with_summary/waterfall_container/waterfall/badge/span_links_badge.tsx
Show resolved
Hide resolved
.../waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts
Outdated
Show resolved
Hide resolved
.../waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts
Outdated
Show resolved
Hide resolved
…ibana into poc-embeddable-waterfall
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.
LGTM. just a couple nits.
if (onClick) { | ||
e.stopPropagation(); | ||
onClick(waterfallItemFlyoutTab); | ||
} |
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.
Should we call e.stopPropagation
regardless of the onClick
state?
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.
This is actually intended. For embeddable waterfall we don't want to open the flyout when clicking on a node, but it's nice to collapse it. But on APM we do open the flyout, and in this case we don't want to propagate the click so the node is not collapsed.
...tion_details/waterfall_with_summary/waterfall_container/waterfall/badge/span_links_badge.tsx
Show resolved
Hide resolved
...pp/transaction_details/waterfall_with_summary/waterfall_container/waterfall_legends.test.tsx
Outdated
Show resolved
Hide resolved
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.
LGTM!
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
|
closes elastic#215756 Using the new embeddable: ``` <ReactEmbeddableRenderer type="APM_TRACE_WATERFALL_EMBEDDABLE" getParentApi={() => ({ getSerializedStateForChild: () => ({ rawState: { serviceName: 'foo', traceId: 'e7b9d541fae0e25106291f7ac0947acd', entryTransactionId: '2d94d9d4fda31c18', rangeFrom: '2025-03-26T00:00:00.513Z', rangeTo: '2025-03-26T20:52:42.513Z', displayLimit: 5, //optional param when omitted it renders the entire waterfall }, }), })} hidePanelChrome={true} /> ``` **This video is just an example, I did NOT add the embeddable to Discover in this PR** https://github.com/user-attachments/assets/c162d47e-a0bc-4327-8f9f-921d07a022fa
closes #215756
Using the new embeddable:
This video is just an example, I did NOT add the embeddable to Discover in this PR
embeddable.sample.mov