exception_handling 3.2.0 → 3.2.1.pre.dc.0
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/Gemfile.lock +9 -7
- data/lib/exception_handling/version.rb +1 -1
- data/lib/exception_handling.rb +10 -4
- 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: b0a738fe270f0a29eba1e4dc72e0de3685da510c67e7797e3dd0ace5f4c68b96
|
|
4
|
+
data.tar.gz: 8913c6badab576e3683ee0cfd3c9421460362ca4d59e4733190317d516d67931
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50b88726b7db8e6197cae2830993c02a3a31ac560ec62c8e6986c7e64a2b42b37c892ed10eeaae610f99356162447c055e3fce641082ded2b4b1fd5f54a0d548
|
|
7
|
+
data.tar.gz: 48f7b772bbe25e5e76bc2997e64abd5aaea87f46dd97c9d2bcbe05da48999e6a2450848bc04b4fe586fc25773f69c44982c0e986cce7354bb1dbee44440f3bfd
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
exception_handling (3.2.0)
|
|
4
|
+
exception_handling (3.2.1.pre.dc.0)
|
|
5
5
|
activesupport (>= 5.2)
|
|
6
6
|
contextual_logger (~> 1.0)
|
|
7
7
|
escalate (~> 0.3)
|
|
@@ -34,9 +34,10 @@ GEM
|
|
|
34
34
|
coderay (1.1.3)
|
|
35
35
|
concurrent-ruby (1.3.4)
|
|
36
36
|
connection_pool (2.4.1)
|
|
37
|
-
contextual_logger (1.
|
|
38
|
-
activesupport
|
|
37
|
+
contextual_logger (1.5.0)
|
|
38
|
+
activesupport (>= 6.0)
|
|
39
39
|
json
|
|
40
|
+
date (3.5.1)
|
|
40
41
|
diff-lcs (1.5.1)
|
|
41
42
|
docile (1.4.1)
|
|
42
43
|
drb (2.2.1)
|
|
@@ -45,8 +46,8 @@ GEM
|
|
|
45
46
|
honeybadger (4.12.2)
|
|
46
47
|
i18n (1.14.5)
|
|
47
48
|
concurrent-ruby (~> 1.0)
|
|
48
|
-
invoca-utils (0.
|
|
49
|
-
activesupport (>=
|
|
49
|
+
invoca-utils (0.7.0)
|
|
50
|
+
activesupport (>= 6.0)
|
|
50
51
|
json (2.7.2)
|
|
51
52
|
language_server-protocol (3.17.0.3)
|
|
52
53
|
method_source (1.1.0)
|
|
@@ -63,7 +64,8 @@ GEM
|
|
|
63
64
|
pry-byebug (3.10.1)
|
|
64
65
|
byebug (~> 11.0)
|
|
65
66
|
pry (>= 0.13, < 0.15)
|
|
66
|
-
psych (5.
|
|
67
|
+
psych (5.4.0)
|
|
68
|
+
date
|
|
67
69
|
stringio
|
|
68
70
|
racc (1.7.3)
|
|
69
71
|
rainbow (3.1.1)
|
|
@@ -106,7 +108,7 @@ GEM
|
|
|
106
108
|
simplecov-html (0.13.2)
|
|
107
109
|
simplecov-lcov (0.9.0)
|
|
108
110
|
simplecov_json_formatter (0.1.4)
|
|
109
|
-
stringio (3.
|
|
111
|
+
stringio (3.2.0)
|
|
110
112
|
test-unit (3.6.2)
|
|
111
113
|
power_assert
|
|
112
114
|
thor (1.3.1)
|
data/lib/exception_handling.rb
CHANGED
|
@@ -271,12 +271,18 @@ module ExceptionHandling # never included
|
|
|
271
271
|
exception = exception_info.exception
|
|
272
272
|
exception_description = exception_info.exception_description
|
|
273
273
|
|
|
274
|
+
tags = tags_hash_for_sentry(exception_info)
|
|
275
|
+
exception_handling_context = exception_info.honeybadger_context_data
|
|
276
|
+
controller_context = exception_info.controller_name.present? ? { name: exception_info.controller_name } : nil
|
|
277
|
+
fingerprint_data = exception_description ? [exception_description.filter_name.to_s] : nil
|
|
278
|
+
|
|
274
279
|
response = Sentry.capture_exception(exception) do |scope|
|
|
275
|
-
|
|
280
|
+
log_info("!!! Setting Sentry scope")
|
|
276
281
|
scope.set_tags(tags) if tags.any?
|
|
277
|
-
scope.set_context("exception_handling",
|
|
278
|
-
scope.set_context("controller",
|
|
279
|
-
scope.set_fingerprint(
|
|
282
|
+
scope.set_context("exception_handling", exception_handling_context)
|
|
283
|
+
scope.set_context("controller", controller_context) if controller_context
|
|
284
|
+
scope.set_fingerprint(fingerprint_data) if fingerprint_data
|
|
285
|
+
log_info("!!! Finished setting Sentry scope")
|
|
280
286
|
end
|
|
281
287
|
response ? :success : :failure
|
|
282
288
|
rescue Exception => ex
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: exception_handling
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.0
|
|
4
|
+
version: 3.2.1.pre.dc.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Invoca
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|