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.
block
transient
1 parent db2c6ca commit 21527caCopy full SHA for 21527ca
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