diff --git a/lib/datadog/tracing/contrib/ethon/easy_patch.rb b/lib/datadog/tracing/contrib/ethon/easy_patch.rb index 3c274b8968..8399cc8deb 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