We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1363629 commit 9e83acdCopy full SHA for 9e83acd
test/traces/provider/async/task.rb
@@ -11,17 +11,21 @@
11
12
describe Async::Task do
13
it "traces tasks within active tracing" do
14
- context = nil
+ parent_context = child_context = nil
15
16
Thread.new do
17
- Traces.trace("test") do
+ Traces.trace("parent") do
18
+ parent_context = Traces.trace_context
19
+
20
Async do
- context = Traces.trace_context
21
+ child_context = Traces.trace_context
22
end
23
24
end.join
25
- expect(context).not.to be == nil
26
+ expect(child_context).to have_attributes(
27
+ trace_id: be == parent_context.trace_id
28
+ )
29
30
31
it "doesn't trace tasks outside of active tracing" do
0 commit comments