Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.

Commit 87192ee

Browse files
committed
fix
1 parent e9a91c9 commit 87192ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tracer/propagation_ot.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ func (p *textMapPropagator) Extract(
126126
traceStateArray := strings.Split(v, ",")
127127
for _, stItem := range traceStateArray {
128128
stItem = strings.TrimSpace(stItem)
129-
stItemArray := strings.Split(stItem, "=")
130-
decodedBaggage[stItemArray[0]] = stItemArray[1]
129+
if strings.IndexRune(stItem, '=') > -1 {
130+
stItemArray := strings.Split(stItem, "=")
131+
decodedBaggage[stItemArray[0]] = stItemArray[1]
132+
}
131133
}
132134
default:
133135
lowercaseK := strings.ToLower(k)

0 commit comments

Comments
 (0)