From 7f4dcebb42c20b39d139dbe7c38b0fc2d191a6d2 Mon Sep 17 00:00:00 2001 From: ZStriker19 Date: Tue, 24 Sep 2024 21:06:57 -0400 Subject: [PATCH] change conditional --- lib/datadog/tracing/trace_operation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datadog/tracing/trace_operation.rb b/lib/datadog/tracing/trace_operation.rb index b7097bfede6..ac820d2ecf1 100644 --- a/lib/datadog/tracing/trace_operation.rb +++ b/lib/datadog/tracing/trace_operation.rb @@ -291,7 +291,7 @@ def to_digest span_id = @active_span && @active_span.id span_id ||= @parent_span_id unless finished? # sample the trace_operation with the tracer - tracer.sample_trace(self) if @sampled.nil? + tracer.sample_trace(self) unless sampled? TraceDigest.new( span_id: span_id,