honeybadger 5.19.0 → 5.19.1

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: bf4c3296c72440877caccd2ada861f4060af897ed517688fb838cd57ae0a58ff
4
- data.tar.gz: 25d45250d1f2d2b0fadfa37637446316f12588f3dd134695803c3a068a0513d8
3
+ metadata.gz: 845eb3bb6f21901ea870b5da7124decc51c01a1f9902330608eb7c9d7d0f0e89
4
+ data.tar.gz: '0388e922e33e0b116d23df7c53ef3b4d9bf047f319ce60f2548881a8328df758'
5
5
  SHA512:
6
- metadata.gz: 3c66b0c6fa819e716b18a710c1e11fe8c95d25e06ca69216efb93fb2d4bffd1d65c46e7b00b658c0321ac6608817dec2c894eb68bcc0bf39da858c37c0b96302
7
- data.tar.gz: 6ef30a79138840ade5fef06ef5771f96c4a94ea942b6154b322632f73d71f8c72745be940e25c6aa19187411897c528e5f3e0325c3605cce0861cc4a6aa73a9b
6
+ metadata.gz: 17282da0e828893e7b3bee7b34d9da1566eb1eba7843491f8b036db5e846a8641adcef3d923a78d817e9ab5f465b495b5e37aaba87b2d9c78eb9b6c5ce2b8dec
7
+ data.tar.gz: 6bf054b890c44226db7d4b9d3eed2b2ed5f848a59b882fa0cd1ce0b788d488c492f05b937f673007d41ef2f05298470664efe94531e5a1447ba21a127b7cb929
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log
2
2
 
3
3
 
4
+ ## [5.19.1](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.19.0...v5.19.1) (2024-11-02)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * don't raise errors in instrumentation metrics ([#627](https://github.com/honeybadger-io/honeybadger-ruby/issues/627)) ([1231dae](https://github.com/honeybadger-io/honeybadger-ruby/commit/1231dae0c48a2fab4cdaa14f7308ab3e0b44c287))
10
+
4
11
  ## [5.19.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.18.0...v5.19.0) (2024-10-29)
5
12
 
6
13
 
@@ -57,10 +57,12 @@ module Honeybadger
57
57
  value = attributes.delete(:duration) || attributes.delete(:value)
58
58
  end
59
59
 
60
- raise 'No value found' if value.nil?
61
-
62
60
  Honeybadger::Timer.register(registry, name, attributes).tap do |timer|
63
- timer.record(value)
61
+ if value.nil?
62
+ agent.config.logger.warn("No value found for timer #{name}. Must specify either duration or value. Skipping.")
63
+ else
64
+ timer.record(value)
65
+ end
64
66
  end
65
67
  end
66
68
 
@@ -77,10 +79,12 @@ module Honeybadger
77
79
  value = attributes.delete(:duration) || attributes.delete(:value)
78
80
  end
79
81
 
80
- raise 'No value found' if value.nil?
81
-
82
82
  Honeybadger::Histogram.register(registry, name, attributes).tap do |histogram|
83
- histogram.record(value)
83
+ if value.nil?
84
+ agent.config.logger.warn("No value found for histogram #{name}. Must specify either duration or value. Skipping.")
85
+ else
86
+ histogram.record(value)
87
+ end
84
88
  end
85
89
  end
86
90
 
@@ -134,7 +138,11 @@ module Honeybadger
134
138
  end
135
139
 
136
140
  Honeybadger::Gauge.register(registry, name, attributes).tap do |gauge|
137
- gauge.record(value)
141
+ if value.nil?
142
+ agent.config.logger.warn("No value found for gauge #{name}. Must specify value. Skipping.")
143
+ else
144
+ gauge.record(value)
145
+ end
138
146
  end
139
147
  end
140
148
 
@@ -19,6 +19,7 @@ module Honeybadger
19
19
 
20
20
  def call
21
21
  @registry.metrics.each do |metric|
22
+ next if metric.samples == 0
22
23
  metric.event_payloads.each do |payload|
23
24
  Honeybadger.event(payload.merge(interval: @interval))
24
25
  end
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '5.19.0'.freeze
3
+ VERSION = '5.19.1'.freeze
4
4
  end
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.19.0
4
+ version: 5.19.1
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-10-29 00:00:00.000000000 Z
11
+ date: 2024-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger