atatus 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c826023bc77c8c0812bb37c3fd85398c7510dbf012c3f5aa96380a79debad62a
4
- data.tar.gz: 4e4057a1aea0ec24664b8684b9e01768c902632c3b60e7cb5f13d923a7a177f2
3
+ metadata.gz: cc239b97c79b5f08087cb18a01202d02a040380a57ab7cb4f324f788693459b6
4
+ data.tar.gz: 30cb19013300718357c28e41e95306ced7fa80633904d4213216e54485e0618f
5
5
  SHA512:
6
- metadata.gz: 5896404c1ff48e0db977fa886d62f1a74a361e2667b595686229000e15e8faecacab5f159d5ae40dac593e1283ecbe07be116342d97bc9327400779647ec727f
7
- data.tar.gz: de62b1b3afa2366e65b6062a44c03fa819b086809cb44b22d3b5436a53e54c91d20afa613a2cb8703e8b112e7173430a8fc267e6aea9413f35715ec3a066298e
6
+ metadata.gz: 39c3db15d4ee7f8f3a7d055977638c3c4a88b3073c3503a7194dd749574197166e65df68c525c45631e3514a59dbbba1cfa156b224cb4220226c691961a086b0
7
+ data.tar.gz: 50f8cd73f38d8729d786c407a3be835b92fe44b7a721e6adf2a6053153ae00cbb48ec5650fb6313f7d1590e1fd6f0db12d52b8c58e535be117d99e8fc91101bb
data/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 2.0.3 (Wed, 16 Oct 2024)
8
+
9
+ - Fixed Action Dispatch exception handler failure in Rails 7.1
10
+
11
+
12
+ ## 2.0.2 (Mon, 27 May 2024)
13
+
14
+ - Fixed issue when trace sample fails in GCP Cloud
15
+
16
+
7
17
  ## 2.0.1 (Mon, 12 Feb 2024)
8
18
 
9
19
  - Fixed default logger to use Rails Logger instead of stdout
@@ -150,7 +150,7 @@ module Atatus
150
150
 
151
151
  transaction.done result
152
152
 
153
- if transaction.sampled? || @config.version < Config::ServerInfo::VERSION_8_0
153
+ if transaction.sampled?
154
154
  enqueue.call transaction
155
155
  end
156
156
 
@@ -24,11 +24,19 @@ module Atatus
24
24
  class ActionDispatchSpy
25
25
  # @api private
26
26
  module Ext
27
- def render_exception(env, exception)
28
- context = Atatus.build_context(rack_env: env, for_type: :error)
29
- Atatus.report(exception, context: context, handled: false)
27
+ def render_exception(request, exception_or_wrapper)
28
+ context = Atatus.build_context(
29
+ rack_env: request, for_type: :error
30
+ )
31
+ exception =
32
+ if exception_or_wrapper.is_a?(ActionDispatch::ExceptionWrapper)
33
+ exception_or_wrapper.exception
34
+ else
35
+ exception_or_wrapper
36
+ end
30
37
 
31
- super(env, exception)
38
+ Atatus.report(exception, context: context, handled: false)
39
+ super(request, exception_or_wrapper)
32
40
  end
33
41
  end
34
42
 
@@ -19,5 +19,5 @@
19
19
 
20
20
  module Atatus
21
21
  AGENT_NAME = 'Ruby'
22
- VERSION = '2.0.1'
22
+ VERSION = '2.0.3'
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atatus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atatus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-12 00:00:00.000000000 Z
11
+ date: 2024-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby