-
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
fix(otel): split otel profile to multiple pprof profile if samples have service.name attribute #3792
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! 👍
MemoryLimit: om.MemoryLimit, | ||
FileOffset: om.FileOffset, | ||
Filename: p.addstr(p.src.StringTable[om.Filename]), | ||
BuildId: p.addstr(p.src.StringTable[om.BuildId]), |
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.
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{{ |
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.
Could we add a third sample without service name? We should expect a separate profile with service_name=unknown
No description provided.