File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/traces/provider/async Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
spec . add_dependency "fiber-annotation"
30
30
spec . add_dependency "io-event" , "~> 1.11"
31
31
spec . add_dependency "metrics" , "~> 0.12"
32
- spec . add_dependency "traces" , "~> 0.15 "
32
+ spec . add_dependency "traces" , "~> 0.18 "
33
33
end
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def schedule(&block)
14
14
end
15
15
16
16
unless self . transient?
17
- trace_context = Traces . trace_context
17
+ trace_context = Traces . current_context
18
18
end
19
19
20
20
attributes = {
@@ -25,7 +25,7 @@ def schedule(&block)
25
25
26
26
# Run the trace in the context of the child task:
27
27
super do
28
- Traces . trace_context = trace_context
28
+ Traces . with_context ( trace_context )
29
29
30
30
if annotation = self . annotation
31
31
attributes [ "annotation" ] = annotation
You can’t perform that action at this time.
0 commit comments