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|
2929 spec . add_dependency "fiber-annotation"
3030 spec . add_dependency "io-event" , "~> 1.11"
3131 spec . add_dependency "metrics" , "~> 0.12"
32- spec . add_dependency "traces" , "~> 0.15 "
32+ spec . add_dependency "traces" , "~> 0.18 "
3333end
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def schedule(&block)
1414 end
1515
1616 unless self . transient?
17- trace_context = Traces . trace_context
17+ trace_context = Traces . current_context
1818 end
1919
2020 attributes = {
@@ -25,7 +25,7 @@ def schedule(&block)
2525
2626 # Run the trace in the context of the child task:
2727 super do
28- Traces . trace_context = trace_context
28+ Traces . with_context ( trace_context )
2929
3030 if annotation = self . annotation
3131 attributes [ "annotation" ] = annotation
You can’t perform that action at this time.
0 commit comments