Codebase list golang-github-go-kit-kit / 272f7b6
[#812] swaps tested conditions José Carlos Chávez authored 5 years ago GitHub committed 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
156156 if config.propagate {
157157 spanContext = tracer.Extract(b3.ExtractHTTP(req))
158158
159 if config.requestSampler != nil && spanContext.Sampled == nil {
159 if spanContext.Sampled == nil && config.requestSampler != nil {
160160 sample := config.requestSampler(req)
161161 spanContext.Sampled = &sample
162162 }