Skip to content

Commit

Permalink
tracer: only set drop priority on whole trace (#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgajg1134 authored Aug 17, 2023
1 parent e9060fc commit 1e92bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/tracer/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ func (t *tracer) sample(span *span) {
sampler := t.config.sampler
if !sampler.Sample(span) {
span.context.trace.drop()
span.setSamplingPriority(ext.PriorityAutoReject, samplernames.RuleRate)
span.context.trace.setSamplingPriority(ext.PriorityAutoReject, samplernames.RuleRate)
return
}
if rs, ok := sampler.(RateSampler); ok && rs.Rate() < 1 {
Expand Down

0 comments on commit 1e92bd4

Please sign in to comment.