skylight 5.3.3 → 5.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/skylight/middleware.rb +1 -1
- data/lib/skylight/probes/redis.rb +18 -1
- data/lib/skylight/vendor/cli/highline.rb +0 -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: 319c04b50f1841b5b827b005c0300ce4425eff37d51a8b66d77836bdc8d98e39
|
4
|
+
data.tar.gz: 734769ec52b8268c2a4716d21d3317d481054eb3cedbff1eeac7dec5d7060bcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 772e2f4532ffef77509e05974f9139716c10f31aa825cba7cd941a8fae4c6ff68ead8963dc4b99ccb906d13d32a0c615f2f161a2bca058de27ba30e42e7c8645
|
7
|
+
data.tar.gz: 21e57545141e437a295ae36cda4e2fd87dc6657cf32201285781547d7b27ad8410d11d095a91f58319543b5c561c59cc70d4c77ad2013762d1e26d62adecd281
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 5.3.5 (January 18, 2024)
|
2
|
+
- [IMPROVEMENT] Remove an outdated 'abbrev' requirement
|
3
|
+
|
4
|
+
## 5.3.4 (October 17, 2022)
|
5
|
+
|
6
|
+
- [BUGFIX] Fix a middleware response method that was incompatible with Puma >= 6.
|
7
|
+
- [IMPROVEMENT] Improved support for Redis v5
|
8
|
+
|
1
9
|
## 5.3.3 (July 13, 2022)
|
2
10
|
|
3
11
|
- [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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-18 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.5.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.
|