appsignal 4.0.7 → 4.0.8

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: 78c8dd5ee5ed3846e8cbb260d304a13bbb1f3895a649fafc933966e7409f8e01
4
- data.tar.gz: 270076b4c45a2f5581f7ed8a6fe952cabefd52779f1f033c5c1e1212757772c2
3
+ metadata.gz: 05e742b53256b12c2f0f29eca8f595f2ec3208bce6fe8a20ebb8539fe05e3549
4
+ data.tar.gz: d618aaef77d084971875a411754e27ae943f4e49920630701197e1f49dcdb7be
5
5
  SHA512:
6
- metadata.gz: be0ae83cecd27986ce591f2d1a1480290a1d65f54c48441a4265e13864327fb1e6e4a37e52e4cba0dadb77a208e8e5595e1ae1f5a7678b29024352722fd23654
7
- data.tar.gz: 5f6284b47a65d258bfc567f6d7ba68c91458251bfc39d74709644324c8f9e277657d42eca93077509a837dfba3fe412385b2d853e73aba7c1f0863df5356efc0
6
+ metadata.gz: 6e7bf5883a425d4bbd25d0d4707b6c1d668572217f91b0ca3df76faf9b8fb4d0ed7e2595c3e8e706c4dabbcb93f22a28d54d56ceaa7d9edf7568914777245827
7
+ data.tar.gz: '0932d3a6c1e36236ae43d1de915605f852a7b1f56719f70ffdab9edad4db861b8471ea890c2851633765ad10d54b3de30f7c62a40497dffd6700c22f8ec815a7'
data/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # AppSignal for Ruby gem Changelog
2
2
 
3
+ ## 4.0.8
4
+
5
+ _Published on 2024-09-13._
6
+
7
+ ### Fixed
8
+
9
+ - Fix a `ThreadError` from being raised on process exit when `Appsignal.stop` is called from a `Signal.trap` block, like when Puma shuts down in clustered mode. (patch [32323ded](https://github.com/appsignal/appsignal-ruby/commit/32323ded277d4764ea1bd0d0dab02bef3de40ccb))
10
+
3
11
  ## 4.0.7
4
12
 
5
13
  _Published on 2024-09-12._
6
14
 
7
15
  ### Changed
8
16
 
9
- - Format the Date and Time objects in a human-friendly way. Previously, dates and times stored in sample data, like session data, would be shown as `#<Date>` and `#<Time>`. Now they will show as `#<Date: 2024-09-11>` and `#<Time: Time: 2024-09-12T13:14:15+02:00>` (UTC offset may be different for your time objects depending on the server setting). (patch [8f516484](https://github.com/appsignal/appsignal-ruby/commit/8f516484d249f43ffadcf15a67bbab48f827eff6))
17
+ - Format the Date and Time objects in a human-friendly way. Previously, dates and times stored in sample data, like session data, would be shown as `#<Date>` and `#<Time>`. Now they will show as `#<Date: 2024-09-11>` and `#<Time: 2024-09-12T13:14:15+02:00>` (UTC offset may be different for your time objects depending on the server setting). (patch [8f516484](https://github.com/appsignal/appsignal-ruby/commit/8f516484d249f43ffadcf15a67bbab48f827eff6))
10
18
 
11
19
  ### Removed
12
20
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "4.0.7"
4
+ VERSION = "4.0.8"
5
5
  end
data/lib/appsignal.rb CHANGED
@@ -157,14 +157,16 @@ module Appsignal
157
157
  # @return [void]
158
158
  # @since 1.0.0
159
159
  def stop(called_by = nil)
160
- if called_by
161
- internal_logger.debug("Stopping AppSignal (#{called_by})")
162
- else
163
- internal_logger.debug("Stopping AppSignal")
164
- end
165
- Appsignal::Extension.stop
166
- Appsignal::Probes.stop
167
- Appsignal::CheckIn.stop
160
+ Thread.new do
161
+ if called_by
162
+ internal_logger.debug("Stopping AppSignal (#{called_by})")
163
+ else
164
+ internal_logger.debug("Stopping AppSignal")
165
+ end
166
+ Appsignal::Extension.stop
167
+ Appsignal::Probes.stop
168
+ Appsignal::CheckIn.stop
169
+ end.join
168
170
  end
169
171
 
170
172
  # Configure the AppSignal Ruby gem using a DSL.
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: 4.0.7
4
+ version: 4.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-09-12 00:00:00.000000000 Z
13
+ date: 2024-09-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack