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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyredondo committed Mar 9, 2020
1 parent 69fcfb6 commit 9af785f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tracer/propagation_ot.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (p *textMapPropagator) Extract(
if traceParentArray[3] == "01" {
sampled = true
}
requiredFieldCount = requiredFieldCount + 2
case traceStateKey:
traceStateArray := strings.Split(v, ",")
for _, stItem := range traceStateArray {
Expand All @@ -129,9 +130,6 @@ func (p *textMapPropagator) Extract(
requiredFieldCount++
return nil
})
if err != nil {
return nil, err
}
if traceID == uuid.Nil && spanID == 0 {
err = carrier.ForeachKey(func(k, v string) error {
switch strings.ToLower(k) {
Expand Down

0 comments on commit 9af785f

Please sign in to comment.