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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f292c98e64a5e880cc6a09979d1b9dbebd1fbe2a074f9d98a3a84391d6829107
4
- data.tar.gz: b69dcabd0bada51da5ff4010c29a6aeb42e7a44f79841c5f7e14a55990a488fe
3
+ metadata.gz: b0a738fe270f0a29eba1e4dc72e0de3685da510c67e7797e3dd0ace5f4c68b96
4
+ data.tar.gz: 8913c6badab576e3683ee0cfd3c9421460362ca4d59e4733190317d516d67931
5
5
  SHA512:
6
- metadata.gz: 9bc146dff9c619c77c3f9b17bac3b83bbb48787df2a07aa368a8fdee2ebd2d35260b903424abef82d91a3f5a75d44561cbb0812159ab27d9e4b5c7ff7dd5a493
7
- data.tar.gz: e2ff09d2805cafc8d18993051c4ac568168a73a8de9eab1074de69de819b2e7025e7bd4eb6339f2a06b8ccfa4ab86c2f36f65e89052132f0b416924f8623c274
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-04
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exception_handling (3.2.0.pre.dc.1)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExceptionHandling
4
- VERSION = '3.2.0.pre.dc.1'
4
+ VERSION = '3.2.1.pre.dc.0'
5
5
  end
@@ -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
- tags = tags_hash_for_sentry(exception_info)
280
+ log_info("!!! Setting Sentry scope")
276
281
  scope.set_tags(tags) if tags.any?
277
- scope.set_context("exception_handling", exception_info.honeybadger_context_data)
278
- scope.set_context("controller", { name: exception_info.controller_name }) if exception_info.controller_name.present?
279
- scope.set_fingerprint([exception_description.filter_name.to_s]) if exception_description
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.pre.dc.1
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-05 00:00:00.000000000 Z
11
+ date: 2026-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport