Skip to content

Commit

Permalink
check sampling priority differently
Browse files Browse the repository at this point in the history
  • Loading branch information
ZStriker19 committed Sep 25, 2024
1 parent 63189ea commit 630e6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datadog/tracing/tracer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def flush_trace(trace_op)
trace = @trace_flush.consume!(trace_op)
if trace && !trace.empty?
# check if trace is not sampled
sample_trace(trace) unless trace.sampled?
sample_trace(trace) unless trace.priority_sampled?
write(trace)
end
rescue StandardError => e
Expand Down

0 comments on commit 630e6f2

Please sign in to comment.