appsignal 2.9.9-java → 2.9.10-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/appsignal/hooks/puma.rb +5 -0
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/hooks/puma_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 812926a999c781a683ffee24fe05a32f329d32e5cc8011436d265567cf408342
|
4
|
+
data.tar.gz: 2884eb415ce21ba319ef600810adc5b6a6d714ac8468b4d45df2773453932b9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c437d14d9517c7a29c090addaa4d3cc1dac82b13282030cb8b279e2886ffc341f70d2f919065b7fe6efb91560ed63ac986bc8bf5218203c259a81233c7f3aed
|
7
|
+
data.tar.gz: 675bd7ca267324f1efb17194d4dda0ac75e03b4497c7c42b52c292efb84197fcd87a1ea2c65ebe605c14a2c063d7956dcd7cce39e48f2a6af0105f2bbef40ed4
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.9.10
|
4
|
+
- Fix Puma minutely probe start where `daemonize` is set to `true`. PR #548
|
5
|
+
|
3
6
|
## 2.9.9
|
4
7
|
- Fix error in the ActiveSupport::Notifications integration when a transaction
|
5
8
|
gets completed during event instrumentation. PR #532
|
6
9
|
- Fix Redis constant load error. PR #543
|
10
|
+
- Add more logging for errors in debug mode. PR #544
|
7
11
|
- Deprecate notify_of_deploy command. PR #545
|
8
12
|
- Always call the block given to `Appsignal.monitor_transaction` and log errors
|
9
13
|
from the helper even when AppSignal is not active. PR #547
|
data/lib/appsignal/hooks/puma.rb
CHANGED
@@ -16,6 +16,11 @@ module Appsignal
|
|
16
16
|
end
|
17
17
|
|
18
18
|
if ::Puma.respond_to?(:cli_config) && ::Puma.cli_config
|
19
|
+
::Puma.cli_config.options[:before_fork] ||= []
|
20
|
+
::Puma.cli_config.options[:before_fork] << proc do |_id|
|
21
|
+
Appsignal::Minutely.start
|
22
|
+
end
|
23
|
+
|
19
24
|
::Puma.cli_config.options[:before_worker_boot] ||= []
|
20
25
|
::Puma.cli_config.options[:before_worker_boot] << proc do |_id|
|
21
26
|
Appsignal.forked
|
data/lib/appsignal/version.rb
CHANGED
@@ -71,12 +71,14 @@ describe Appsignal::Hooks::PumaHook do
|
|
71
71
|
|
72
72
|
context "with nil hooks" do
|
73
73
|
before do
|
74
|
+
Puma.cli_config.options.delete(:before_fork)
|
74
75
|
Puma.cli_config.options.delete(:before_worker_boot)
|
75
76
|
Puma.cli_config.options.delete(:before_worker_shutdown)
|
76
77
|
Appsignal::Hooks::PumaHook.new.install
|
77
78
|
end
|
78
79
|
|
79
80
|
it "should add a before shutdown worker callback" do
|
81
|
+
expect(Puma.cli_config.options[:before_fork].first).to be_a(Proc)
|
80
82
|
expect(Puma.cli_config.options[:before_worker_boot].first).to be_a(Proc)
|
81
83
|
expect(Puma.cli_config.options[:before_worker_shutdown].first).to be_a(Proc)
|
82
84
|
end
|
@@ -84,12 +86,14 @@ describe Appsignal::Hooks::PumaHook do
|
|
84
86
|
|
85
87
|
context "with existing hooks" do
|
86
88
|
before do
|
89
|
+
Puma.cli_config.options[:before_fork] = []
|
87
90
|
Puma.cli_config.options[:before_worker_boot] = []
|
88
91
|
Puma.cli_config.options[:before_worker_shutdown] = []
|
89
92
|
Appsignal::Hooks::PumaHook.new.install
|
90
93
|
end
|
91
94
|
|
92
95
|
it "should add a before shutdown worker callback" do
|
96
|
+
expect(Puma.cli_config.options[:before_fork].first).to be_a(Proc)
|
93
97
|
expect(Puma.cli_config.options[:before_worker_boot].first).to be_a(Proc)
|
94
98
|
expect(Puma.cli_config.options[:before_worker_shutdown].first).to be_a(Proc)
|
95
99
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appsignal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.10
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|