async 2.21.2 → 2.21.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/version.rb +1 -1
- data/lib/traces/provider/async/task.rb +7 -0
- data.tar.gz.sig +0 -0
- metadata +30 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cc69a2f9c734662ef143958e58fc4c9af45d7a05a0910570457c328fb488fca
|
4
|
+
data.tar.gz: b1149b22d3dc693e411efa942fe36841f7ce9120050b370addc309e270ba7965
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8930f0303101bc429bc7cc9f9120e516699559af0ee1b73af95c957e9bc3c1cfd9dcca45ce14a99ed86d78fc4a2cce6eb77f64f46fbde2db61d028aa4c89739
|
7
|
+
data.tar.gz: 359e97fb5805e6b7bef879aad71df0f72a53584b806c30f4a5a52e1f26f4dce1e9e21f20b01c5d79fb714857d53d78232c2c209ce959c806b81b358f63aa452b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/async/version.rb
CHANGED
@@ -8,6 +8,11 @@ require "traces/provider"
|
|
8
8
|
|
9
9
|
Traces::Provider(Async::Task) do
|
10
10
|
def schedule(&block)
|
11
|
+
# If we are not actively tracing anything, then we can skip this:
|
12
|
+
unless Traces.active?
|
13
|
+
return super(&block)
|
14
|
+
end
|
15
|
+
|
11
16
|
unless self.transient?
|
12
17
|
trace_context = Traces.trace_context
|
13
18
|
end
|
@@ -18,6 +23,7 @@ Traces::Provider(Async::Task) do
|
|
18
23
|
"transient" => self.transient?,
|
19
24
|
}
|
20
25
|
|
26
|
+
# Run the trace in the context of the child task:
|
21
27
|
super do
|
22
28
|
Traces.trace_context = trace_context
|
23
29
|
|
@@ -26,6 +32,7 @@ Traces::Provider(Async::Task) do
|
|
26
32
|
end
|
27
33
|
|
28
34
|
Traces.trace("async.task", attributes: attributes) do
|
35
|
+
# Yes, this is correct, we already called super above:
|
29
36
|
yield
|
30
37
|
end
|
31
38
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.21.
|
4
|
+
version: 2.21.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -62,7 +62,7 @@ cert_chain:
|
|
62
62
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
63
63
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
64
64
|
-----END CERTIFICATE-----
|
65
|
-
date: 2025-01-
|
65
|
+
date: 2025-01-31 00:00:00.000000000 Z
|
66
66
|
dependencies:
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: console
|
@@ -98,20 +98,42 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - "~>"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: '1.
|
102
|
-
|
101
|
+
version: '1.7'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '1.7'
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: traces
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
103
114
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
115
|
+
version: '0.15'
|
105
116
|
type: :runtime
|
106
117
|
prerelease: false
|
107
118
|
version_requirements: !ruby/object:Gem::Requirement
|
108
119
|
requirements:
|
109
120
|
- - "~>"
|
110
121
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
112
|
-
|
122
|
+
version: '0.15'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: metrics
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0.12'
|
130
|
+
type: :runtime
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
113
135
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
136
|
+
version: '0.12'
|
115
137
|
executables: []
|
116
138
|
extensions: []
|
117
139
|
extra_rdoc_files: []
|
metadata.gz.sig
CHANGED
Binary file
|