skylight 5.3.3 → 5.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/skylight/middleware.rb +1 -1
- data/lib/skylight/probes/redis.rb +18 -1
- data/lib/skylight/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: eff8fe1dc5d710696a97b5e2a3cfe53eba04e34a9ded8c9b550bc82538b6dfbb
|
4
|
+
data.tar.gz: a1236552d1cee17eaf0c0aee7371e7f6f201ab6810c4721a7ac67dcfe1f70177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a91c535de86e475c325c9a287c92754603e186e583691f4db240557a1d3fc9393ea0180c0e18273e86350c16562097b6040d709f91692340788b13c605a858
|
7
|
+
data.tar.gz: c0bbf8d365bf386a7e1a0ae858b8007cb4046416e91b69862b250c21938a72b725ad0b0f5f0d25ffc73fc4fb435dff705bcb50c00c416fcdf0bb58e9dbcf8cfc
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 5.3.4 (October 17, 2022)
|
2
|
+
|
3
|
+
- [BUGFIX] Fix a middleware response method that was incompatible with Puma >= 6.
|
4
|
+
- [IMPROVEMENT] Improved support for Redis v5
|
5
|
+
|
1
6
|
## 5.3.3 (July 13, 2022)
|
2
7
|
|
3
8
|
- [IMPROVEMENT] Track the original class/method name for Sidekiq delayed object proxies
|
data/lib/skylight/middleware.rb
CHANGED
@@ -20,6 +20,18 @@ module Skylight
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
module ClientInstrumentationV5
|
24
|
+
def call_v(command)
|
25
|
+
command_name = command[0]
|
26
|
+
|
27
|
+
return super if command_name == :auth
|
28
|
+
|
29
|
+
opts = { category: "db.redis.command", title: command_name.upcase.to_s, internal: true }
|
30
|
+
|
31
|
+
Skylight.instrument(opts) { super }
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
23
35
|
module Instrumentation
|
24
36
|
def pipelined(*)
|
25
37
|
Skylight.instrument(PIPELINED_OPTS) { super }
|
@@ -40,7 +52,12 @@ module Skylight
|
|
40
52
|
return
|
41
53
|
end
|
42
54
|
|
43
|
-
::Redis::Client.
|
55
|
+
if ::Redis::Client.method_defined?(:call_v)
|
56
|
+
::Redis::Client.prepend(ClientInstrumentationV5)
|
57
|
+
else
|
58
|
+
::Redis::Client.prepend(ClientInstrumentation)
|
59
|
+
end
|
60
|
+
|
44
61
|
::Redis.prepend(Instrumentation)
|
45
62
|
end
|
46
63
|
end
|
data/lib/skylight/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skylight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.3.
|
4
|
+
version: 5.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -385,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
385
385
|
- !ruby/object:Gem::Version
|
386
386
|
version: '0'
|
387
387
|
requirements: []
|
388
|
-
rubygems_version: 3.
|
388
|
+
rubygems_version: 3.3.3
|
389
389
|
signing_key:
|
390
390
|
specification_version: 4
|
391
391
|
summary: Skylight is a smart profiler for Rails, Sinatra, and other Ruby apps.
|