Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Shkuro committed Aug 5, 2016
1 parent 0131939 commit c0fae9a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crossdock/server/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ func observeSpan(ctx context.Context, tracer opentracing.Tracer) (*tracetest.Obs
observedSpan := tracetest.NewObservedSpan()
observedSpan.TraceId = fmt.Sprintf("%x", sc.TraceID())
observedSpan.Sampled = sc.IsSampled()
sc.ForeachBaggageItem(func(k, v string) bool {
if k == BaggageKey {
observedSpan.Baggage = v
return false
}
return true
})
observedSpan.Baggage = span.BaggageItem(BaggageKey)
return observedSpan, nil
}

0 comments on commit c0fae9a

Please sign in to comment.