-
Notifications
You must be signed in to change notification settings - Fork 622
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
fix: disable Go names decoration #2976
Conversation
cc @aocenas We're going to need some sort of function sanitizer on the frontend but still able to access to original function for programatic need. |
@cyriltovena I assume we could just port this function https://github.com/grafana/pyroscope/pull/2343/files#diff-e7b8e2da222a25feb1fdc03174dd0d9783102c532048d0bd2945ab9ef6c87c8bR10 to the frontend right? Is it safe to apply to any code (non Go code)? It seems like @kolesnikovae suggests as much in the comment but wonder if there is some caveat or not. |
I would not do it for any other language just in case I suggest we found this Again the original must still be accessible on click event. |
|
Yeah but we still don't have any information about the language from the backend do we? |
Starting from Go 1.21.0, type parameters are part of the function name in pprof, which often makes them unreadable
The change reverts #2343 (replaces Go type parameters with ellipses
[...]
) as it makes it impossible to find the selected node in the source profile in backend (needed for #2228, and #2727 and https://github.com/grafana/pyroscope-app-plugin/issues/207).The presentation aspects are to be managed on the frontend. Ideally, there should be an option for user to disable all the decorations. Note that a function name change usually causes changes in the tree/flamegraph structure, which we used to fix. I believe we don't have to do this.