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

fix(otel): split otel profile to multiple pprof profile if samples have service.name attribute #3792

Merged
merged 7 commits into from
Dec 19, 2024

Conversation

korniltsev
Copy link
Collaborator

No description provided.

@korniltsev korniltsev requested a review from a team as a code owner December 18, 2024 10:19
@korniltsev korniltsev self-assigned this Dec 18, 2024
Copy link
Contributor

@marcsanmi marcsanmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

MemoryLimit: om.MemoryLimit,
FileOffset: om.FileOffset,
Filename: p.addstr(p.src.StringTable[om.Filename]),
BuildId: p.addstr(p.src.StringTable[om.BuildId]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't going to work with the new spec.

However, not related to this PR since we're relying on om.BuildId before. I created an issue last week https://github.com/grafana/pyroscope-squad/issues/295

otlpb.profile.LocationIndices = []int64{0, 1, 2, 3}

// Create two samples with different service.name attributes and different stacktraces
otlpb.profile.Sample = []*v1experimental.Sample{{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a third sample without service name? We should expect a separate profile with service_name=unknown

@korniltsev korniltsev enabled auto-merge (squash) December 19, 2024 11:09
@korniltsev korniltsev merged commit 0e34df1 into main Dec 19, 2024
18 checks passed
@korniltsev korniltsev deleted the otlp-split-pprof branch December 19, 2024 11:18
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