honeybadger 5.25.0 → 5.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/honeybadger/plugins/rails.rb +7 -3
- data/lib/honeybadger/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: f7bcdde3f33ab64c1d8e608d169bc05c56e6ed8ec958a11046caa49568c348a5
|
4
|
+
data.tar.gz: 036fff2d87563cd2b21155619b32e53b22d1a8afd846d881ae486e557dc81e71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb6966adaf990948aa62522c52054f45b9bc3adee2bb9b0939c296cd071d0741a714ca4723b83504de0da8958df9e65c79533081a72f6d2eb0a4cecd16927cfc
|
7
|
+
data.tar.gz: 831467b1a778c468c1f35f776f4c79561228115ecb610c25769799dc254d25a1eb62135c6b03bd95e1cc0dbb126118f5a0ffa5b37bd306ab36cb16b3ef1389db
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
3
|
|
4
|
+
## [5.26.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.25.0...v5.26.0) (2024-11-27)
|
5
|
+
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* use after_change for context changes ([#651](https://github.com/honeybadger-io/honeybadger-ruby/issues/651)) ([2cfc766](https://github.com/honeybadger-io/honeybadger-ruby/commit/2cfc766660d0462168aded9c34712904f8a1f774))
|
10
|
+
|
4
11
|
## [5.25.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.24.0...v5.25.0) (2024-11-26)
|
5
12
|
|
6
13
|
|
@@ -32,8 +32,6 @@ module Honeybadger
|
|
32
32
|
|
33
33
|
class ErrorSubscriber
|
34
34
|
def self.report(exception, handled:, severity:, context: {}, source: nil)
|
35
|
-
Honeybadger.context(context)
|
36
|
-
|
37
35
|
# We only report handled errors (`Rails.error.handle`)
|
38
36
|
# Unhandled errors will be caught by our integrations (eg middleware),
|
39
37
|
# which have richer context than the Rails error reporter
|
@@ -43,7 +41,7 @@ module Honeybadger
|
|
43
41
|
|
44
42
|
tags = ["severity:#{severity}", "handled:#{handled}"]
|
45
43
|
tags << "source:#{source}" if source
|
46
|
-
Honeybadger.notify(exception, tags: tags)
|
44
|
+
Honeybadger.notify(exception, context: context, tags: tags)
|
47
45
|
end
|
48
46
|
|
49
47
|
def self.source_ignored?(source)
|
@@ -67,6 +65,12 @@ module Honeybadger
|
|
67
65
|
end
|
68
66
|
|
69
67
|
if Honeybadger.config[:'exceptions.enabled'] && defined?(::ActiveSupport::ErrorReporter) # Rails 7
|
68
|
+
if defined?(::ActiveSupport::ExecutionContext)
|
69
|
+
::ActiveSupport::ExecutionContext.after_change do
|
70
|
+
Honeybadger.context(::ActiveSupport::ExecutionContext.to_h)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
70
74
|
::Rails.error.subscribe(ErrorSubscriber)
|
71
75
|
end
|
72
76
|
end
|
data/lib/honeybadger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybadger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Honeybadger Industries LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger
|