Skip to content

Commit

Permalink
ddtrace/tracer: Fix bug in sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
piochelepiotr committed Jul 15, 2021
1 parent 1244148 commit 4601f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/tracer/spancontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (t *trace) finishedOne(s *span, keep bool) {
t.spans = nil
t.finished = 0 // important, because a buffer can be used for several flushes
}()
if !keep {
if !t.keep {
return
}
if tr, ok := internal.GetGlobalTracer().(*tracer); ok {
Expand Down

0 comments on commit 4601f4a

Please sign in to comment.