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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/honeybadger/instrumentation.rb +15 -7
- data/lib/honeybadger/registry_execution.rb +1 -0
- 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: 845eb3bb6f21901ea870b5da7124decc51c01a1f9902330608eb7c9d7d0f0e89
|
4
|
+
data.tar.gz: '0388e922e33e0b116d23df7c53ef3b4d9bf047f319ce60f2548881a8328df758'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
|
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.19.
|
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-
|
11
|
+
date: 2024-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger
|