Skip to content

Commit

Permalink
fix: add missing truncateAttr when updating an attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
boekkooi-impossiblecloud committed Oct 2, 2024
1 parent ef84c7b commit 3737aec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/trace/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ func (s *recordingSpan) addOverCapAttrs(limit int, attrs []attribute.KeyValue) {

if idx, ok := exists[a.Key]; ok {
// Perform all updates before dropping, even when at capacity.
a = truncateAttr(s.tracer.provider.spanLimits.AttributeValueLengthLimit, a)
s.attributes[idx] = a
continue
}
Expand Down

0 comments on commit 3737aec

Please sign in to comment.