honeybadger 5.22.0 → 5.23.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 +7 -0
- data/lib/honeybadger/config/defaults.rb +25 -0
- data/lib/honeybadger/plugins/autotuner.rb +9 -6
- data/lib/honeybadger/version.rb +1 -1
- data/lib/puma/plugin/honeybadger.rb +9 -3
- 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: c39590cf4156c12f42b0f04fbc2f27f76c3583c48fdfc01b30885c0b60e47511
|
4
|
+
data.tar.gz: 7b92557df489fe548d5653e9e7c5ea5bac1c87720fc7797821a0758829b00534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaced28451f474f8e3d53d7e56d97f8a94a8d307da0e15a0e097f065421089486faa04ad8f72d61d2be1d2f04424583aa93c3531bc3d91afc90e1b2700fb1f95
|
7
|
+
data.tar.gz: 1c33cc13477a77cd405fce3b84ad3fabea8a84203aaa170f20374c901d402edec6fc5e240c676a41f89be91255b0f60b769f7e3a34380f2f9106b4e0655fb937
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
3
|
|
4
|
+
## [5.23.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.22.0...v5.23.0) (2024-11-19)
|
5
|
+
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* update puma and autotuner plugins ([#644](https://github.com/honeybadger-io/honeybadger-ruby/issues/644)) ([1ed9687](https://github.com/honeybadger-io/honeybadger-ruby/commit/1ed96874c31c0273bc28cb917043f19140fd8204))
|
10
|
+
|
4
11
|
## [5.22.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.21.0...v5.22.0) (2024-11-14)
|
5
12
|
|
6
13
|
|
@@ -491,6 +491,31 @@ module Honeybadger
|
|
491
491
|
description: "Number of seconds between registry flushes.",
|
492
492
|
default: 60,
|
493
493
|
type: Integer
|
494
|
+
},
|
495
|
+
:'puma.insights.events' => {
|
496
|
+
description: 'Enable automatic event capturing for Puma stats.',
|
497
|
+
default: true,
|
498
|
+
type: Boolean
|
499
|
+
},
|
500
|
+
:'puma.insights.metrics' => {
|
501
|
+
description: 'Enable automatic metric data aggregation for Puma stats.',
|
502
|
+
default: false,
|
503
|
+
type: Boolean
|
504
|
+
},
|
505
|
+
:'puma.insights.collection_interval' => {
|
506
|
+
description: 'The frequency in which the Honeybadger gem will collect Puma stats.',
|
507
|
+
default: 1,
|
508
|
+
type: Integer
|
509
|
+
},
|
510
|
+
:'autotuner.insights.events' => {
|
511
|
+
description: 'Enable automatic event capturing for Autotuner stats.',
|
512
|
+
default: true,
|
513
|
+
type: Boolean
|
514
|
+
},
|
515
|
+
:'autotuner.insights.metrics' => {
|
516
|
+
description: 'Enable automatic metric data aggregation for Autotuner stats.',
|
517
|
+
default: false,
|
518
|
+
type: Boolean
|
494
519
|
}
|
495
520
|
}.freeze
|
496
521
|
|
@@ -10,17 +10,20 @@ module Honeybadger
|
|
10
10
|
execution do
|
11
11
|
singleton_class.include(Honeybadger::InstrumentationHelper)
|
12
12
|
|
13
|
-
::Autotuner.enabled = true
|
14
|
-
|
15
13
|
::Autotuner.reporter = proc do |report|
|
16
14
|
Honeybadger.event("report.autotuner", report: report.to_s)
|
17
15
|
end
|
18
16
|
|
19
|
-
metric_source 'autotuner'
|
20
|
-
|
21
17
|
::Autotuner.metrics_reporter = proc do |metrics|
|
22
|
-
|
23
|
-
|
18
|
+
if config.load_plugin_insights_events?(:autotuner)
|
19
|
+
Honeybadger.event('stats.autotuner', metrics)
|
20
|
+
end
|
21
|
+
|
22
|
+
if config.load_plugin_insights_metrics?(:autotuner)
|
23
|
+
metric_source 'autotuner'
|
24
|
+
metrics.each do |key, val|
|
25
|
+
gauge key, ->{ val }
|
26
|
+
end
|
24
27
|
end
|
25
28
|
end
|
26
29
|
end
|
data/lib/honeybadger/version.rb
CHANGED
@@ -12,7 +12,7 @@ module Honeybadger
|
|
12
12
|
in_background do
|
13
13
|
loop do
|
14
14
|
puma_plugin.record
|
15
|
-
sleep 1
|
15
|
+
sleep [::Honeybadger.config.collection_interval(:puma).to_i, 1].max
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -35,8 +35,14 @@ module Honeybadger
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def record_puma_stats(stats, context={})
|
38
|
-
|
39
|
-
|
38
|
+
if Honeybadger.config.load_plugin_insights_events?(:puma)
|
39
|
+
Honeybadger.event('stats.puma', context.merge(stats))
|
40
|
+
end
|
41
|
+
|
42
|
+
if Honeybadger.config.load_plugin_insights_metrics?(:puma)
|
43
|
+
STATS_KEYS.each do |stat|
|
44
|
+
gauge stat, context, ->{ stats[stat] } if stats[stat]
|
45
|
+
end
|
40
46
|
end
|
41
47
|
end
|
42
48
|
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.
|
4
|
+
version: 5.23.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-
|
11
|
+
date: 2024-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger
|