honeybadger 5.5.0 → 5.6.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 +14 -0
- data/lib/honeybadger/events_worker.rb +2 -2
- data/lib/honeybadger/plugins/active_job.rb +11 -9
- 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: 0553610b4340f86d2d607666cd3f31da65d5c61c63c8f5956e7d63ff5ef1726d
|
4
|
+
data.tar.gz: 169eb72ebd67a4fc8bbfd5a462619f7b8f9d875e3ea084a5c39311afa2c40bec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1235bc8bf638c498d96e3e440d8fc40ac72f76df0a5ca491d21836367dad636311e6373183f33cc10981c0aca170ecab05ff342a739d7a8d29b5c7db187c5a0b
|
7
|
+
data.tar.gz: 8ff748c31c80cd90813b8284f5e3f015cb38493713d1f0d921fe43b85791100cb20c32fd3b78f74812e8043b904e1c603a340ef8ac6cd69747d0e81e70af290d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [5.6.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.5.1...v5.6.0) (2024-03-05)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* track exceptions in :solid_queue ([#526](https://github.com/honeybadger-io/honeybadger-ruby/issues/526)) ([4e2d428](https://github.com/honeybadger-io/honeybadger-ruby/commit/4e2d4287bbbe0100d6f82a38b7314fc8dc5a1571)), closes [#518](https://github.com/honeybadger-io/honeybadger-ruby/issues/518)
|
9
|
+
|
10
|
+
## [5.5.1](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.5.0...v5.5.1) (2024-02-26)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* don't raise an exception when ActiveJob isn't loaded ([#523](https://github.com/honeybadger-io/honeybadger-ruby/issues/523)) ([40c7892](https://github.com/honeybadger-io/honeybadger-ruby/commit/40c7892b9f191eb9159b776880962fc079c5e665))
|
16
|
+
|
3
17
|
## [5.5.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.4.1...v5.5.0) (2024-02-12)
|
4
18
|
|
5
19
|
|
@@ -291,9 +291,9 @@ module Honeybadger
|
|
291
291
|
warn { sprintf('Event send failed: Payload is too large. code=%s', response.code) }
|
292
292
|
when 201
|
293
293
|
if throttle = dec_throttle
|
294
|
-
|
294
|
+
debug { sprintf('Success ⚡ Event sent code=%s throttle=%s interval=%s', response.code, throttle, throttle_interval) }
|
295
295
|
else
|
296
|
-
|
296
|
+
debug { sprintf('Success ⚡ Event sent code=%s', response.code) }
|
297
297
|
end
|
298
298
|
when :stubbed
|
299
299
|
info { sprintf('Success ⚡ Development mode is enabled; This event will be sent after app is deployed.') }
|
@@ -1,28 +1,30 @@
|
|
1
1
|
module Honeybadger
|
2
2
|
module Plugins
|
3
3
|
module ActiveJob
|
4
|
-
|
4
|
+
# Ignore inline and test adapters, as well as the adapters that we support with their own plugins
|
5
|
+
EXCLUDED_ADAPTERS = %i[inline test delayed_job faktory karafka resque shoryuken sidekiq sucker_punch].freeze
|
6
|
+
|
5
7
|
Plugin.register {
|
6
8
|
requirement { defined?(::Rails.application) && ::Rails.application }
|
7
|
-
requirement {
|
8
|
-
::Rails.application.config.active_job
|
9
|
+
requirement {
|
10
|
+
::Rails.application.config.respond_to?(:active_job) &&
|
11
|
+
!EXCLUDED_ADAPTERS.include?(::Rails.application.config.active_job[:queue_adapter])
|
9
12
|
}
|
10
|
-
|
13
|
+
|
11
14
|
execution {
|
12
|
-
::ActiveJob::Base.class_eval do |base|
|
15
|
+
::ActiveJob::Base.class_eval do |base|
|
13
16
|
base.set_callback :perform, :around do |param, block|
|
14
17
|
Honeybadger.clear!
|
15
18
|
begin
|
16
19
|
block.call
|
17
20
|
rescue => error
|
18
|
-
Honeybadger.notify(error, parameters: {
|
21
|
+
Honeybadger.notify(error, parameters: {job_id: job_id, arguments: arguments})
|
19
22
|
raise error
|
20
23
|
end
|
21
24
|
end
|
22
|
-
end
|
25
|
+
end
|
23
26
|
}
|
24
27
|
}
|
25
28
|
end
|
26
29
|
end
|
27
|
-
|
28
|
-
end
|
30
|
+
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.6.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
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|