Skip to content

Commit

Permalink
Don't send empty sample attributes (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
athre0z authored Jun 27, 2024
1 parent 4aaff2d commit 92a0c4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reporter/otlp_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,10 @@ func getSampleAttributes(profile *profiles.Profile, i traceFramesCounts) []uint6
indices := make([]uint64, 0, 4)

addAttr := func(k attribute.Key, v string) {
if v == "" {
return
}

indices = append(indices, uint64(len(profile.AttributeTable)))
profile.AttributeTable = append(profile.AttributeTable, &common.KeyValue{
Key: string(k),
Expand Down

0 comments on commit 92a0c4a

Please sign in to comment.