honeybadger 5.16.0 → 5.18.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 +14 -0
- data/lib/honeybadger/agent.rb +1 -0
- data/lib/honeybadger/config/defaults.rb +6 -0
- data/lib/honeybadger/init/rails.rb +1 -1
- data/lib/honeybadger/notice.rb +14 -7
- data/lib/honeybadger/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ac625c10c4a54cedc7385e468f6c1ca58b6e70462d53569b0e06e7a71e05375
|
4
|
+
data.tar.gz: 608e399be30c0193ec3423f9ce61d6a5a6e4c3c6409a48766d164f2c45d6ce50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e88fdc901c68e8ac52a3668eab830103ee57d1dd2180c52a21f22c4177d74d47495570682d0b7c60fa26560cbcbc083428d9274daa8fab9c8d608dea19cea59f
|
7
|
+
data.tar.gz: 60f864a5799746ec90aba7576eed46d2321443114b9307bea759c314dc6783e7fc2361b2883d3c4662de3506649a9c151f19328f31a198c9a8f4e10fcf09e265
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
3
|
|
4
|
+
## [5.18.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.17.0...v5.18.0) (2024-10-25)
|
5
|
+
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* add a separate configuration for Insights in a console ([#623](https://github.com/honeybadger-io/honeybadger-ruby/issues/623)) ([a89488e](https://github.com/honeybadger-io/honeybadger-ruby/commit/a89488e535ff04ec2e362807f0001471ba5c6fe3))
|
10
|
+
|
11
|
+
## [5.17.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.16.0...v5.17.0) (2024-10-22)
|
12
|
+
|
13
|
+
|
14
|
+
### Features
|
15
|
+
|
16
|
+
* add request_id to notices ([#619](https://github.com/honeybadger-io/honeybadger-ruby/issues/619)) ([fa4d878](https://github.com/honeybadger-io/honeybadger-ruby/commit/fa4d878ad0f0a5c37e49adeab1c53e6ffa463295)), closes [#616](https://github.com/honeybadger-io/honeybadger-ruby/issues/616)
|
17
|
+
|
4
18
|
## [5.16.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.15.6...v5.16.0) (2024-09-19)
|
5
19
|
|
6
20
|
|
data/lib/honeybadger/agent.rb
CHANGED
@@ -149,6 +149,7 @@ module Honeybadger
|
|
149
149
|
opts[:rack_env] ||= context_manager.get_rack_env
|
150
150
|
opts[:global_context] ||= context_manager.get_context
|
151
151
|
opts[:breadcrumbs] ||= breadcrumbs.dup
|
152
|
+
opts[:request_id] ||= context_manager.get_request_id
|
152
153
|
|
153
154
|
notice = Notice.new(config, opts)
|
154
155
|
|
@@ -34,6 +34,7 @@ module Honeybadger
|
|
34
34
|
IGNORE_EVENTS_DEFAULT = [
|
35
35
|
{ event_type: 'sql.active_record', query: /^(begin|commit)( transaction)?$/i },
|
36
36
|
{ event_type: 'sql.active_record', query: /(solid_queue|good_job)/i },
|
37
|
+
{ event_type: 'sql.active_record', name: /^GoodJob/ },
|
37
38
|
{ event_type: 'process_action.action_controller', controller: 'Rails::HealthController' }
|
38
39
|
].freeze
|
39
40
|
|
@@ -410,6 +411,11 @@ module Honeybadger
|
|
410
411
|
default: false,
|
411
412
|
type: Boolean
|
412
413
|
},
|
414
|
+
:'insights.console.enabled' => {
|
415
|
+
description: "Enable/Disable Honeybadger Insights built-in instrumentation in a Rails console.",
|
416
|
+
default: false,
|
417
|
+
type: Boolean
|
418
|
+
},
|
413
419
|
:'insights.registry_flush_interval' => {
|
414
420
|
description: "Number of seconds between registry flushes.",
|
415
421
|
default: 60,
|
@@ -34,7 +34,7 @@ module Honeybadger
|
|
34
34
|
end
|
35
35
|
|
36
36
|
console do
|
37
|
-
Honeybadger::Agent.instance.config[:'insights.enabled'] =
|
37
|
+
Honeybadger::Agent.instance.config[:'insights.enabled'] = Honeybadger::Agent.instance.config[:'insights.console.enabled']
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
data/lib/honeybadger/notice.rb
CHANGED
@@ -144,6 +144,9 @@ module Honeybadger
|
|
144
144
|
# Custom details data
|
145
145
|
attr_accessor :details
|
146
146
|
|
147
|
+
# The ID of the request which caused this notice.
|
148
|
+
attr_accessor :request_id
|
149
|
+
|
147
150
|
# The parsed exception backtrace. Lines in this backtrace that are from installed gems
|
148
151
|
# have the base path for gem installs replaced by "[GEM_ROOT]", while those in the project
|
149
152
|
# have "[PROJECT_ROOT]".
|
@@ -213,13 +216,14 @@ module Honeybadger
|
|
213
216
|
self.api_key = opts[:api_key] || config[:api_key]
|
214
217
|
self.tags = construct_tags(opts[:tags]) | construct_tags(context[:tags])
|
215
218
|
|
216
|
-
self.url
|
217
|
-
self.action
|
218
|
-
self.component
|
219
|
-
self.params
|
220
|
-
self.session
|
221
|
-
self.cgi_data
|
222
|
-
self.details
|
219
|
+
self.url = opts[:url] || request_hash[:url] || nil
|
220
|
+
self.action = opts[:action] || request_hash[:action] || nil
|
221
|
+
self.component = opts[:controller] || opts[:component] || request_hash[:component] || nil
|
222
|
+
self.params = opts[:parameters] || opts[:params] || request_hash[:params] || {}
|
223
|
+
self.session = opts[:session] || request_hash[:session] || {}
|
224
|
+
self.cgi_data = opts[:cgi_data] || request_hash[:cgi_data] || {}
|
225
|
+
self.details = opts[:details] || {}
|
226
|
+
self.request_id = opts[:request_id] || nil
|
223
227
|
|
224
228
|
self.session = opts[:session][:data] if opts[:session] && opts[:session][:data]
|
225
229
|
|
@@ -261,6 +265,9 @@ module Honeybadger
|
|
261
265
|
stats: stats,
|
262
266
|
time: now,
|
263
267
|
pid: pid
|
268
|
+
},
|
269
|
+
correlation_context: {
|
270
|
+
request_id: s(request_id)
|
264
271
|
}
|
265
272
|
}
|
266
273
|
end
|
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.
|
4
|
+
version: 5.18.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
|
+
date: 2024-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
|
-
rubygems_version: 3.5.
|
196
|
+
rubygems_version: 3.5.16
|
197
197
|
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: Error reports you can be happy about.
|