honeybadger 5.15.0 → 5.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/honeybadger/notification_subscriber.rb +7 -1
- data/lib/honeybadger/plugins/sidekiq.rb +17 -11
- 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: 69b84047612b956b73078affe506c2d6e0002b7960b915be89c996add8c845a3
|
4
|
+
data.tar.gz: ff6a0f6cd8cbf4854e7362999ab5e4734c9a959d483ced78f66c4fd1c444e1b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70aa645ac2e7deb9b94f055e41e0e9407eb9972089f9ecc33d5d58b2bb43c289d6255e67e005a51e83fe7e7a59ffdb45ec1010c200bfd5d3e731c9109d4b9928
|
7
|
+
data.tar.gz: 0b1715ede2a528ccdb0e1344b31909139b860580911ff8580a54bf1ad4cc94e5a7b9168e2076ac9b371a2053a7e0cf09edc6adab50fb72e63a7173ef5dba046e
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,28 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
3
|
|
4
|
+
## [5.15.3](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.15.2...v5.15.3) (2024-07-25)
|
5
|
+
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* use top level Sidekiq namespace ([#598](https://github.com/honeybadger-io/honeybadger-ruby/issues/598)) ([8b95d19](https://github.com/honeybadger-io/honeybadger-ruby/commit/8b95d1910abbb015d17c132c1737acbf1fbd7c7f))
|
10
|
+
|
11
|
+
## [5.15.2](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.15.1...v5.15.2) (2024-07-25)
|
12
|
+
|
13
|
+
|
14
|
+
### Bug Fixes
|
15
|
+
|
16
|
+
* don't send "key" in cache event payloads ([#596](https://github.com/honeybadger-io/honeybadger-ruby/issues/596)) ([b05ba2d](https://github.com/honeybadger-io/honeybadger-ruby/commit/b05ba2da4c76f31bf4f51761542fa0211148ace5))
|
17
|
+
|
18
|
+
## [5.15.1](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.15.0...v5.15.1) (2024-07-23)
|
19
|
+
|
20
|
+
|
21
|
+
### Bug Fixes
|
22
|
+
|
23
|
+
* safe navigate adapter_name for payload connection ([#593](https://github.com/honeybadger-io/honeybadger-ruby/issues/593)) ([368fb16](https://github.com/honeybadger-io/honeybadger-ruby/commit/368fb160d811252f83d0e262110a8c198557c7df))
|
24
|
+
* sidekiq leader check only for version > 6.5 ([#594](https://github.com/honeybadger-io/honeybadger-ruby/issues/594)) ([3bc005b](https://github.com/honeybadger-io/honeybadger-ruby/commit/3bc005b12d689da84ebe9b485eb53c508623d984))
|
25
|
+
|
4
26
|
## [5.15.0](https://github.com/honeybadger-io/honeybadger-ruby/compare/v5.14.2...v5.15.0) (2024-07-18)
|
5
27
|
|
6
28
|
|
@@ -40,9 +40,15 @@ module Honeybadger
|
|
40
40
|
end
|
41
41
|
|
42
42
|
class ActionControllerCacheSubscriber < NotificationSubscriber
|
43
|
+
def format_payload(payload)
|
44
|
+
payload.except(:key)
|
45
|
+
end
|
43
46
|
end
|
44
47
|
|
45
48
|
class ActiveSupportCacheSubscriber < NotificationSubscriber
|
49
|
+
def format_payload(payload)
|
50
|
+
payload.except(:key)
|
51
|
+
end
|
46
52
|
end
|
47
53
|
|
48
54
|
class ActionViewSubscriber < NotificationSubscriber
|
@@ -59,7 +65,7 @@ module Honeybadger
|
|
59
65
|
class ActiveRecordSubscriber < NotificationSubscriber
|
60
66
|
def format_payload(payload)
|
61
67
|
{
|
62
|
-
query: Util::SQL.obfuscate(payload[:sql], payload[:connection]
|
68
|
+
query: Util::SQL.obfuscate(payload[:sql], payload[:connection]&.adapter_name),
|
63
69
|
async: payload[:async]
|
64
70
|
}
|
65
71
|
end
|
@@ -127,25 +127,31 @@ module Honeybadger
|
|
127
127
|
if config.load_plugin_insights?(:sidekiq)
|
128
128
|
require "sidekiq"
|
129
129
|
require "sidekiq/api"
|
130
|
-
require "sidekiq/component"
|
131
130
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
131
|
+
if Gem::Version.new(::Sidekiq::VERSION) >= Gem::Version.new('6.5')
|
132
|
+
require "sidekiq/component"
|
133
|
+
|
134
|
+
class SidekiqClusterCollectionChecker
|
135
|
+
include ::Sidekiq::Component
|
136
|
+
def initialize(config)
|
137
|
+
@config = config
|
138
|
+
end
|
137
139
|
|
138
|
-
|
139
|
-
|
140
|
-
|
140
|
+
def collect?
|
141
|
+
return true unless defined?(::Sidekiq::Enterprise)
|
142
|
+
leader?
|
143
|
+
end
|
141
144
|
end
|
142
145
|
end
|
143
146
|
|
144
147
|
::Sidekiq.configure_server do |config|
|
145
148
|
config.server_middleware { |chain| chain.add(ServerMiddlewareInstrumentation) }
|
146
149
|
config.client_middleware { |chain| chain.add(ClientMiddlewareInstrumentation) }
|
147
|
-
|
148
|
-
|
150
|
+
|
151
|
+
if defined?(SidekiqClusterCollectionChecker)
|
152
|
+
config.on(:startup) do
|
153
|
+
leader_checker = SidekiqClusterCollectionChecker.new(config)
|
154
|
+
end
|
149
155
|
end
|
150
156
|
end
|
151
157
|
|
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.15.
|
4
|
+
version: 5.15.3
|
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-07-
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|