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

Commit cdf1cdb

Browse files
committed
fix
1 parent 689d561 commit cdf1cdb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tracer/propagation_ot.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func (p *textMapPropagator) Extract(
113113
if traceParentArray[3] == "01" {
114114
sampled = true
115115
}
116+
requiredFieldCount = requiredFieldCount + 2
116117
case traceStateKey:
117118
traceStateArray := strings.Split(v, ",")
118119
for _, stItem := range traceStateArray {
@@ -129,9 +130,6 @@ func (p *textMapPropagator) Extract(
129130
requiredFieldCount++
130131
return nil
131132
})
132-
if err != nil {
133-
return nil, err
134-
}
135133
if traceID == uuid.Nil && spanID == 0 {
136134
err = carrier.ForeachKey(func(k, v string) error {
137135
switch strings.ToLower(k) {

0 commit comments

Comments
 (0)