-
Notifications
You must be signed in to change notification settings - Fork 122
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] Profiling flamegraph text uses node id instead of label #1169
Comments
Pinging @elastic/apm-ui (Team:apm) |
@monfera Should I transfer this issue to elastic-charts repo? |
Hi @trentm @sqren thanks for the report, and thanks @nickofthyme for pinging me, the github notifications got swallowed somewhere. In the grand scheme of things, there can be three different pieces of text or alphanumerical values:
It's not currently super clear which image of the two is considered good vs bad, can you please clarify? Also, I just see different texts, and don't have the data, so it'd be best to tag each image with where it appears to get the texts from. One of the shots has a tooltip and the other doesn't, so I'm guessing that what the reported problem is that instead of the id, now the label is used now in the text box, which is also used for the tooltip. But the title of the issue seems to be the exact reverse of that, so I'd like to ask clarification for that. As the change was a while ago and I wasn't aware that it went into Kibana then, some time passed, I can only guess it was an intentional fix. The bars can be of arbitrary width, so even now I think there's utility to showing the same text in the tooltip as what's shown in the box. Is it something that we agree on? Other flamegraphs are like that. If this is the case, maybe we can pose it as a request eg. in
Either way, an |
Btw. I'm glad to make the gh issue in |
Hopefully this clarifies: The two screenshots above are for the same data. The first (bad) case is using
In the example data above, for the box just below "root":
It seems to me (without understanding the code) that the chart is using
For APM UI I believe we'll want to have the ability to specify different string values for the "box text" and the "tooltip text" (we'll show more data in the tooltip). I agree that typically the tooltip text value will include the box text (plus more). I'm not one of the designers, nor even one of the UI engineers. I don't think we've settled on or discussed what format the tooltip should be. Eventually I think it would be nice to be able to have a tooltip with more structure than just a string (styling, multi-line). |
Transferred to elastic-charts repo. |
Versions
Kibana: master
The issue:
Those box labels in the flamegraph are using
.id
values rather than.label
values. The tooltips are getting the correct values. When it was working it looked like this:Some details:
In elastic/kibana#91818, @dgieselaar added a "Profiling" section to the APM app with a flamegraph, using an icicle chart from
@elastic/charts
. At the time of that commit Kibana master was using@elastic/[email protected]
.Kibana commit elastic/kibana@2bfba7b4602 (#94505) broke it. That change updated to
@elastic/[email protected]
.Playing directly with charts version, v25.1.1 works, but v25.2.0 fails. That means the breaking change is in v25.1.1...v25.2.0 From those commits, I assume it is #1041 that changed behaviour to break this flamegraph in Kibana. I don't know if it is a bug in elastic-charts or an incompatible change that Kibana's code need to adjust to. Both of these comments from that PR seem possibly relevant:
Here is Kibana's code creating this chart: https://github.com/elastic/kibana/blob/9d9dfe4bbf6b37243b509a99375067a8781e32a7/x-pack/plugins/apm/public/components/app/service_profiling/service_profiling_flamegraph.tsx#L123-L337
/cc @dgieselaar @monfera @nickofthyme
The text was updated successfully, but these errors were encountered: