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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/atatus/instrumenter.rb +1 -1
- data/lib/atatus/spies/action_dispatch.rb +12 -4
- data/lib/atatus/version.rb +1 -1
- 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: cc239b97c79b5f08087cb18a01202d02a040380a57ab7cb4f324f788693459b6
|
4
|
+
data.tar.gz: 30cb19013300718357c28e41e95306ced7fa80633904d4213216e54485e0618f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/atatus/instrumenter.rb
CHANGED
@@ -24,11 +24,19 @@ module Atatus
|
|
24
24
|
class ActionDispatchSpy
|
25
25
|
# @api private
|
26
26
|
module Ext
|
27
|
-
def render_exception(
|
28
|
-
context = Atatus.build_context(
|
29
|
-
|
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
|
-
|
38
|
+
Atatus.report(exception, context: context, handled: false)
|
39
|
+
super(request, exception_or_wrapper)
|
32
40
|
end
|
33
41
|
end
|
34
42
|
|
data/lib/atatus/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|