-
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] Always render collapsible library stackframes #31320
[APM] Always render collapsible library stackframes #31320
Conversation
@ogupte can you explain the difference between library frames and app frames and stack frames again? I think I learned it at one point but I have no memory of the difference so it's hard to know what changes I'm looking at. Thanks! :D |
From the issue, @formgeist said:
Should these all be collapsed by default? |
💚 Build Succeeded |
When Span stackframes are rendered, some of them have the isLibrary flag set on them originating from lines outside of the app code. On render, contiguous app stackframes and library stackframes are grouped together, and displayed differently from each other. |
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.
Looks good!
Can you fix the pluralization, so it doesn't say "1 library frames" but "1 library frame"?
Something like this:
{
"defaultMessage": "{count, plural, one {# library frame} other {# library frames}}",
"values": {
"count": stackframes.length
}
}
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! @sqren already mentioned the pluralization of frame(s) 👍
@ogupte Something did occur that stuck with me, so I checked in version 6.6, and it seems like we changed the way we displayed library frames in 6.7 and on. Basically, if there's only library frames available, we choose to uncollapse and show them all since there's no app frames to highlight. I guess it must've made it in with the margin tweaks you did previously, just never caught because it's a seemingly rare occurrence (especially when visually testing it). Should we address this in another issue/PR? |
I can address this in this PR, just to clarify: when there are only library frames in the stack trace, we should display them initially expanded. |
Now that I'm looking at it, I actually think we should leave it as we're implementing it now. By always collapsing them, the user will expect this to happen at all time, and it would need their interaction to show them. If we're magically displaying them, I'm not sure they'll be able to tell the toggle is uncollapsed and might mistake them for stack frames. Sorry for the confusion, I was getting carried away by finding that it had changed from the last version. |
…ollapsible, even when there's only 1
1b02e4c
to
f37e06b
Compare
💔 Build Failed |
💔 Build Failed |
retest |
💚 Build Succeeded |
pluralization addressed in latest PR
[APM] closes #28919 by always rendering library stackframes as collapsible, even when there's only 1