Skip to content

Commit

Permalink
Merge branch 'main' into rarguelloF/dbm-prevent-full-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rarguelloF committed Dec 1, 2023
2 parents b0096c4 + d2016f2 commit 4c9ef99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddtrace/tracer/textmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ func (p *propagator) marshalPropagatingTags(ctx *spanContext) string {
properr = "encoding_error"
return true
}
if sb.Len()+len(k)+len(v) > p.cfg.MaxTagsHeaderLen {
if tagLen := sb.Len() + len(k) + len(v); tagLen > p.cfg.MaxTagsHeaderLen {
sb.Reset()
log.Warn("Won't propagate tag: maximum trace tags header len (%d) reached.", p.cfg.MaxTagsHeaderLen)
log.Warn("Won't propagate tag: length is (%d) which exceeds the maximum len of (%d).", tagLen, p.cfg.MaxTagsHeaderLen)
properr = "inject_max_size"
return false
}
Expand Down

0 comments on commit 4c9ef99

Please sign in to comment.