From b98fbcbc75e92438572d57b1ee4b203e020747b9 Mon Sep 17 00:00:00 2001 From: Victor Pellan Date: Mon, 2 Dec 2024 15:27:20 +0100 Subject: [PATCH] Fix error on should_skip_distributed_tracing? on ethon instrumentation --- lib/datadog/tracing/contrib/ethon/easy_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datadog/tracing/contrib/ethon/easy_patch.rb b/lib/datadog/tracing/contrib/ethon/easy_patch.rb index 3c274b8968e..8399cc8debc 100644 --- a/lib/datadog/tracing/contrib/ethon/easy_patch.rb +++ b/lib/datadog/tracing/contrib/ethon/easy_patch.rb @@ -114,7 +114,7 @@ def datadog_before_request(continue_from: nil) datadog_trace.sampling_priority = Tracing::Sampling::Ext::Priority::AUTO_REJECT end - unless Tracing::Distributed::Helpers.should_skip_distributed_tracing?(datadog_configuration, trace: trace) + unless Tracing::Distributed::Helpers.should_skip_distributed_tracing?(datadog_configuration, trace: datadog_trace) @datadog_original_headers ||= {} Contrib::HTTP.inject(datadog_trace, @datadog_original_headers) self.headers = @datadog_original_headers