Skip to content

Commit 05668c0

Browse files
committed
Test with traces enabled.
1 parent 96b9750 commit 05668c0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/async/http/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def call(request)
161161
end
162162

163163
trace('async.http.client.call', attributes: attributes) do |span|
164-
if context = trace_context(span)
164+
if context = self.trace_context
165165
request.headers['traceparent'] = context.to_s
166166
# request.headers['tracestate'] = context.state
167167
end

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
require 'async/rspec'
2727

28+
ENV['TRACES_BACKEND'] ||= 'traces/backend/test'
29+
2830
RSpec.shared_context 'docstring as description' do
2931
let(:description) {self.class.metadata.fetch(:description_args).first}
3032
end

0 commit comments

Comments
 (0)