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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40136d87c293fee9689b5f11926a15bc98c225f34f6a7b75e4fcd8ede1cacc5f
4
- data.tar.gz: '028f8549e380de8c248013f0ed7846f5fea5018f71c8ac1e0bc310a72d695fdd'
3
+ metadata.gz: c39590cf4156c12f42b0f04fbc2f27f76c3583c48fdfc01b30885c0b60e47511
4
+ data.tar.gz: 7b92557df489fe548d5653e9e7c5ea5bac1c87720fc7797821a0758829b00534
5
5
  SHA512:
6
- metadata.gz: 1404e62cbc7b74d49e3a3881791c5cada2ab820e447efb0c7d2c83994cd81d54b32ca614b52a9fc47606d368c65c950ab5159e7e9342e7214c9d891a132d12e6
7
- data.tar.gz: 737dc2abee3fef27ecd93034e6914eb0a6439a6fdcb35e803ceeb2bb74161f0dd19b08fc1661ea78723b7ecd6a8b984c8a1f2733288c63d446ca1c68fa3b335f
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
- metrics.each do |key, val|
23
- gauge key, ->{ val }
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
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # The current String Honeybadger version.
3
- VERSION = '5.22.0'.freeze
3
+ VERSION = '5.23.0'.freeze
4
4
  end
@@ -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
- STATS_KEYS.each do |stat|
39
- gauge stat, context, ->{ stats[stat] } if stats[stat]
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.22.0
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-14 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger