There was an error while loading. Please reload this page.
block
transient
1 parent fa530b3 commit 37ca738Copy full SHA for 37ca738
1 file changed
lib/traces/provider/async/task.rb
@@ -12,13 +12,16 @@ def schedule(&block)
12
trace_context = Traces.trace_context
13
end
14
15
+ attributes = {
16
+ "block" => block,
17
+ "transient" => self.transient?,
18
+ }
19
+
20
super do
21
Traces.trace_context = trace_context
22
23
if annotation = self.annotation
- attributes = {
- "annotation" => annotation
- }
24
+ attributes["annotation"] = annotation
25
26
27
Traces.trace("async.task", attributes: attributes) do
0 commit comments