dispatch-rider 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dispatch-rider/integrations/appsignal.rb +16 -3
- data/lib/dispatch-rider/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1eca91f1563679d325e840becd17c2aca17e5410
|
4
|
+
data.tar.gz: 6f143130e8ac72b45335f3b96b74e5096d2a9086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00de1668b53534f2bd87b5df2d8aee08228eec02c61f88a0215f58b55a8e32cba2bbde1c961d42405b3d65d0b1afd51f9725a2351ec76994aee6e27c30f6254c
|
7
|
+
data.tar.gz: 96256da5c9f9271bcbac9204420b02efeb94ad732cfb6116ef85637d382bf7f639a6291d5060d065bdd7e803cbd78156829da1d4aa213b2538c1764e8a51e28c
|
@@ -33,10 +33,23 @@ if defined? Appsignal
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
|
36
|
+
app_settings = ::Sinatra::Application.settings
|
37
|
+
Appsignal.config = Appsignal::Config.new(
|
38
|
+
app_settings.root,
|
39
|
+
app_settings.environment
|
40
|
+
)
|
41
|
+
|
42
|
+
Appsignal.start_logger(app_settings.root)
|
43
|
+
|
44
|
+
if Appsignal.active?
|
45
|
+
Appsignal.start
|
46
|
+
|
47
|
+
DispatchRider.config do |config|
|
48
|
+
|
49
|
+
config.around(:dispatch_message) do |job, message|
|
50
|
+
DispatchRider::Appsignal.wrap_message(job, message)
|
51
|
+
end
|
37
52
|
|
38
|
-
config.around(:dispatch_message) do |job, message|
|
39
|
-
DispatchRider::Appsignal.wrap_message(job, message)
|
40
53
|
end
|
41
54
|
|
42
55
|
end
|