Skip to content

Commit

Permalink
ddtrace/tracer: Fix bug in shouldKeep
Browse files Browse the repository at this point in the history
  • Loading branch information
piochelepiotr committed Jul 15, 2021
1 parent 4601f4a commit d3ed2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/tracer/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func shouldKeep(s *span) bool {
if v, ok := s.Metrics[ext.EventSampleRate]; ok {
return sampledByRate(s.TraceID, v)
}
return true
return false
}

// shouldComputeStats mentions whether this span needs to have stats computed for.
Expand Down

0 comments on commit d3ed2d9

Please sign in to comment.