alacrity-rails 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alacrity-rails/probe/sidekiq.rb +13 -11
- data/lib/alacrity-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15f11d2a967b272858264a98de0daecef9c1e027
|
4
|
+
data.tar.gz: 67a64779e471bbd377676c75741117cf03abfb47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cc6d243642598e0951accff8207dfaf401cacfecabc35074ddde7147d2bfda6e74ae37d5a897450c90fe6b7ac51cbd2a9ec71130e1a8c66cef4db9d67a68543
|
7
|
+
data.tar.gz: 93828c0031d06a6de58536865c846db0c7b3a576b4f0fdf73a7b3ada3bdce30634fd894e03274f170504b4e5027a9a1625317500ebae98fdd04c8ee837ef04c1
|
@@ -4,18 +4,20 @@ module AlacrityRails
|
|
4
4
|
ACTIVE_JOB_WRAPPER = /^ActiveJob::QueueAdapters::.+$/
|
5
5
|
|
6
6
|
def call(worker_instance, msg, queue)
|
7
|
-
|
8
|
-
|
9
|
-
AlacrityRails::Instrumentor.instrument(
|
10
|
-
type: AlacrityRails::Transaction::Job,
|
11
|
-
data: {
|
12
|
-
worker_class: msg['class'],
|
13
|
-
args: msg['args'],
|
14
|
-
error_class: msg['error_class'],
|
15
|
-
error_message: msg['error_message']
|
16
|
-
}
|
17
|
-
) do
|
7
|
+
if ACTIVE_JOB_WRAPPER.match(msg['class'])
|
18
8
|
yield
|
9
|
+
else
|
10
|
+
AlacrityRails::Instrumentor.instrument(
|
11
|
+
type: AlacrityRails::Transaction::Job,
|
12
|
+
data: {
|
13
|
+
worker_class: msg['class'],
|
14
|
+
args: msg['args'],
|
15
|
+
error_class: msg['error_class'],
|
16
|
+
error_message: msg['error_message']
|
17
|
+
}
|
18
|
+
) do
|
19
|
+
yield
|
20
|
+
end
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alacrity-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alacrity, LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|