Skip to content
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

Merged
merged 9 commits into from
Jan 3, 2025

Conversation

korniltsev
Copy link
Collaborator

No description provided.

@korniltsev korniltsev requested a review from a team as a code owner January 2, 2025 10:10
Copy link
Contributor

@simonswine simonswine left a 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) {
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

@korniltsev korniltsev enabled auto-merge (squash) January 3, 2025 06:06
@korniltsev korniltsev disabled auto-merge January 3, 2025 06:06
@korniltsev korniltsev force-pushed the korniltsev/otlp_integration_tests_fixtures branch from 64994f0 to f8b36f2 Compare January 3, 2025 06:08
@korniltsev korniltsev enabled auto-merge (squash) January 3, 2025 06:09
@korniltsev korniltsev merged commit 466aaa8 into main Jan 3, 2025
17 of 18 checks passed
@korniltsev korniltsev deleted the korniltsev/otlp_integration_tests_fixtures branch January 3, 2025 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants