honeybadger 5.26.1 → 5.26.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29b3ba0daf037b0b33d6efe6203df47e53ad35d13a96c8ab0b22ca03e64dd28a
4
- data.tar.gz: 95b2417445b1620938b265bb83d21b3bfe3635ab05f982a09533d4733bb504e9
3
+ metadata.gz: bc098ba8c6d084785ed9c39913c691efcdc45ba520b17421fee02d16b192be71
4
+ data.tar.gz: a4cd195fcc284c9339e523bf306f2f31276a6c9f41a5c4888d4c8b2f2c4e109d
5
5
  SHA512:
6
- metadata.gz: '049c4f31805f33b450690484f94f033e1551ca6fa3c3f8519e5342077709d35799f507aa188009f4aa49ff04616df65e4f8eb47006c48f6e83eba281328ffaf8'
7
- data.tar.gz: 8193e7515bd7e6d7b7b34e9e70bc19809fdc69c1e527bc71e2952369cbfa517f7f963afaeaafd6efc78dfabb576879fc2c6f6c90f07e98e869206f2366a5dd99
6
+ metadata.gz: 26502df93d21d08d3ad74f9da9cf9d740757fd50aa6db311acdf5eb1fbaaf411a96d25c374fcb11d34e1be5040a1e066fd6176828cd731005663c67a644b5911
7
+ data.tar.gz: 6f0697e36c99ed1e9dad2d6fe6d924c9355e2398e3e57cb9a7634afdbd13458b3912314d7e8311ac2d4d0dc4d18f81af088a75fe21be7609bbfd5eab853100cf
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log
2
2
 
3
3
 
4
+ ## [5.26.2](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.26.1...v5.26.2) (2025-01-10)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * ensure instrumentation durations are unique during threaded executions ([#658](https://github.com/honeybadger-io/honeybadger-ruby/issues/658)) ([4c3f0a6](https://github.com/honeybadger-io/honeybadger-ruby/commit/4c3f0a6e69e826b6664d4385009e67fb94c5160e))
10
+
4
11
  ## [5.26.1](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.26.0...v5.26.1) (2024-12-17)
5
12
 
6
13
 
@@ -42,13 +42,17 @@ module Honeybadger
42
42
  self.class.check_ins
43
43
  end
44
44
 
45
+ def events
46
+ self.class.events
47
+ end
48
+
45
49
  def notify(feature, payload)
46
50
  notifications[feature] << payload
47
51
  super
48
52
  end
49
53
 
50
54
  def event(payload)
51
- events << payload
55
+ events.concat(payload.dup)
52
56
  super
53
57
  end
54
58
 
@@ -6,17 +6,16 @@ module Honeybadger
6
6
  include Honeybadger::InstrumentationHelper
7
7
 
8
8
  def start(name, id, payload)
9
- @start_time = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
9
+ payload[:_start_time] = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
10
10
  end
11
11
 
12
12
  def finish(name, id, payload)
13
- @finish_time = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
14
-
13
+ finish_time = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
15
14
  return unless process?(name, payload)
16
15
 
17
16
  payload = {
18
17
  instrumenter_id: id,
19
- duration: ((@finish_time - @start_time) * 1000).round(2)
18
+ duration: ((finish_time - payload.delete(:_start_time)) * 1000).round(2)
20
19
  }.merge(format_payload(payload).compact)
21
20
 
22
21
  record(name, payload)
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '5.26.1'.freeze
3
+ VERSION = '5.26.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.26.1
4
+ version: 5.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Honeybadger Industries LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-17 00:00:00.000000000 Z
10
+ date: 2025-01-10 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: logger
@@ -24,6 +23,20 @@ dependencies:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
25
  version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: ostruct
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
27
40
  description: Make managing application errors a more pleasant experience.
28
41
  email:
29
42
  - support@honeybadger.io
@@ -176,7 +189,6 @@ metadata:
176
189
  documentation_uri: https://docs.honeybadger.io/lib/ruby/
177
190
  homepage_uri: https://www.honeybadger.io/for/ruby/
178
191
  source_code_uri: https://github.com/honeybadger-io/honeybadger-ruby
179
- post_install_message:
180
192
  rdoc_options:
181
193
  - "--markup=tomdoc"
182
194
  - "--main=README.md"
@@ -194,8 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
206
  - !ruby/object:Gem::Version
195
207
  version: '0'
196
208
  requirements: []
197
- rubygems_version: 3.5.22
198
- signing_key:
209
+ rubygems_version: 3.6.2
199
210
  specification_version: 4
200
211
  summary: Error reports you can be happy about.
201
212
  test_files: []