Skip to content

Commit

Permalink
Fix error on should_skip_distributed_tracing? on ethon instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vpellan committed Dec 2, 2024
1 parent e6639a4 commit e8acbf8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/datadog/tracing/contrib/ethon/easy_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ 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
Expand Down

0 comments on commit e8acbf8

Please sign in to comment.