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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82fca6a0408823667f72d94bfdc2565b2d65dfa9138b0b4e2f8696202c7a6b40
4
- data.tar.gz: 8b2ad863c09e99f43f5781568c3103b225c702a2c0e85d6806282045d200356e
3
+ metadata.gz: 812926a999c781a683ffee24fe05a32f329d32e5cc8011436d265567cf408342
4
+ data.tar.gz: 2884eb415ce21ba319ef600810adc5b6a6d714ac8468b4d45df2773453932b9a
5
5
  SHA512:
6
- metadata.gz: 6c9ad6169f32dfb7c510bfac95ab01249cdb18d9b2b2f221fc813d5fb711a97d5297ace18d7842667e87f75f9d9604382c61a6a8ebf43af0edaf840e8423862e
7
- data.tar.gz: 8576585801ef1babb29fae42bf89ce3f0457a7cc317e1dbd63c2fc5e94db519b09cc930062cd9c2c35a886fcca39fb0fd1b08699253afcf941f9a3e36a798eef
6
+ metadata.gz: 7c437d14d9517c7a29c090addaa4d3cc1dac82b13282030cb8b279e2886ffc341f70d2f919065b7fe6efb91560ed63ac986bc8bf5218203c259a81233c7f3aed
7
+ data.tar.gz: 675bd7ca267324f1efb17194d4dda0ac75e03b4497c7c42b52c292efb84197fcd87a1ea2c65ebe605c14a2c063d7956dcd7cce39e48f2a6af0105f2bbef40ed4
@@ -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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "2.9.9".freeze
4
+ VERSION = "2.9.10".freeze
5
5
  end
@@ -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.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-06-19 00:00:00.000000000 Z
12
+ date: 2019-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack