honeybadger 6.0.1 → 6.0.3

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: 210a45a0ca54eaf49a6bf8041f8605a3d2b2f06a9eacfb47a54b0eda8988342c
4
- data.tar.gz: 765d1108aa1ab79119eae874583d5114cc239b3a4a2ff4b0de2a3be8490d9aa7
3
+ metadata.gz: 392282edffdfa3bf614356f3f2908ffc492b6830867e03e994d64d2d8e2b728a
4
+ data.tar.gz: 2b1a78927c4a9b2bfd0a9ff70398ae975698da749fc646acd9388ba2c1028fca
5
5
  SHA512:
6
- metadata.gz: b0f983e3a9d7575762389f7d0abe283739a8894a281467deaff493237756730b51235c4ee50bdc261286d9912f71d2972cb7d1d3c5c56e21a1390122701337ba
7
- data.tar.gz: 1341f00eb574457be632afc3de77c1cef6ec1ffab370299f6b45cd15a32194e5d784c52f73177f0167d1155ed130678212b68c374e4877ad4ba740cb0e29be4b
6
+ metadata.gz: caac0cca6af835bb7fe6392f7cf1a62c03131c8c353191f2cb98f2d55bccf4412abe9e4ca21c0dd12ff168cb99786f55692240e372c6fe7bcc4cb33be9d6595d
7
+ data.tar.gz: 35f2a2869f1a3098a3077bb321300a12d582d9983ff19129c98e9f57ca734c0af5a5b4ce69134516be1810fe8d5c6c2cdaed3bb43f7ddc298aa2a8f94bbb3cca
data/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log
2
2
 
3
3
 
4
+ ## [6.0.3](https://github.com/honeybadger-io/honeybadger-ruby/compare/v6.0.2...v6.0.3) (2025-08-04)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * log fewer 429 responses in events worker ([#714](https://github.com/honeybadger-io/honeybadger-ruby/issues/714)) ([91c7fc2](https://github.com/honeybadger-io/honeybadger-ruby/commit/91c7fc2a0f38d16e076f03c45578afec4a536a2a)), closes [#713](https://github.com/honeybadger-io/honeybadger-ruby/issues/713)
10
+
11
+ ## [6.0.2](https://github.com/honeybadger-io/honeybadger-ruby/compare/v6.0.1...v6.0.2) (2025-07-24)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * allow jobs in active job subscriber payloads ([#710](https://github.com/honeybadger-io/honeybadger-ruby/issues/710)) ([cc22434](https://github.com/honeybadger-io/honeybadger-ruby/commit/cc224346f5a40e49fdaae75ca8206501fd8da330))
17
+
4
18
  ## [6.0.1](https://github.com/honeybadger-io/honeybadger-ruby/compare/v6.0.0...v6.0.1) (2025-07-23)
5
19
 
6
20
 
@@ -285,6 +285,7 @@ module Honeybadger
285
285
  when 429, 503
286
286
  throttle = inc_throttle
287
287
  warn { sprintf("Event send failed: project is sending too many events. code=%s throttle=%s interval=%s", response.code, throttle, throttle_interval) }
288
+ suspend(3600)
288
289
  when 402
289
290
  warn { sprintf("Event send failed: payment is required. code=%s", response.code) }
290
291
  suspend(3600)
@@ -122,13 +122,26 @@ module Honeybadger
122
122
  class ActiveJobSubscriber < NotificationSubscriber
123
123
  def format_payload(payload)
124
124
  job = payload[:job]
125
+ jobs = payload[:jobs]
125
126
  adapter = payload[:adapter]
126
- payload.except(:job, :adapter).merge({
127
- adapter_class: adapter.class.to_s,
128
- job_class: job.class.to_s,
129
- job_id: job.job_id,
130
- queue_name: job.queue_name
127
+
128
+ base_payload = payload.except(:job, :jobs, :adapter).merge({
129
+ adapter_class: adapter&.class&.to_s
131
130
  })
131
+
132
+ if jobs
133
+ base_payload.merge({
134
+ jobs: jobs.compact.map { |j| {job_class: j.class.to_s, job_id: j.job_id, queue_name: j.queue_name} }
135
+ })
136
+ elsif job
137
+ base_payload.merge({
138
+ job_class: job.class.to_s,
139
+ job_id: job.job_id,
140
+ queue_name: job.queue_name
141
+ })
142
+ else
143
+ base_payload
144
+ end
132
145
  end
133
146
  end
134
147
 
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = "6.0.1".freeze
3
+ VERSION = "6.0.3".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 6.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Honeybadger Industries LLC
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
- rubygems_version: 3.7.0.dev
211
+ rubygems_version: 3.8.0.dev
212
212
  specification_version: 4
213
213
  summary: Full-stack error tracking, performance monitoring, logging, and more.
214
214
  test_files: []