exception_handling 3.2.0.pre.dc.1 → 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/CHANGELOG.md +1 -1
- data/Gemfile.lock +1 -1
- 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/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
4
4
|
|
|
5
5
|
**Note:** this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
## [3.2.0] - 2026-08-
|
|
7
|
+
## [3.2.0] - 2026-08-06
|
|
8
8
|
### Added
|
|
9
9
|
- Optional Sentry notifications from `send_external_notifications` via explicit `ExceptionHandling.enable_sentry` (requires `Sentry` to be defined and initialized)
|
|
10
10
|
- Sentry events include ExceptionHandling context, tags, controller name, and filter-based fingerprinting (aligned with Honeybadger grouping via `filter_name`)
|
data/Gemfile.lock
CHANGED
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.
|
|
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
|