-
Notifications
You must be signed in to change notification settings - Fork 621
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
chore(otlp): add integration tests with fixtures #3808
Conversation
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
} | ||
|
||
// Stringify converts a profile to a human-readable JSON representation | ||
func Stringify(p *profilev1.Profile, opts Options) (string, error) { |
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.
Not really a suggestion/nit, just wondering what you think about that other format.
Not too sure if you considered this: https://github.com/google/pprof/blob/40e02aabc2ad57b2edbe892564a0730aa40b1e50/profile/profile.go#L553-L555
That's my goto, as I fairly familar with the output from pprof -raw
I guess you would need to convert to protobuf and parse it to a googleprofile.Profile.
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.
I think google profile string is harder to read and write by hand or code.
I also would like to have an option to not output function/location/mapping ids.
Although I like how google string is more compact that what I submit in this PR, I will try update the PR to make it more compact
Another "problem" is the "Time" field which is generated by pyroscope at query time. Although it is pretty easy to remove it from the data.
64994f0
to
f8b36f2
Compare
No description provided.