skylight 5.3.3 → 5.3.4

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: f3b769eb5f54b2400e4e2ba1678a5e45e1bdf3aff9dc205274387317035e606b
4
- data.tar.gz: 1bf4191e377224dfb2c5e064dc6391462c2005a6bf3c8cc658feaa6b6d67e002
3
+ metadata.gz: eff8fe1dc5d710696a97b5e2a3cfe53eba04e34a9ded8c9b550bc82538b6dfbb
4
+ data.tar.gz: a1236552d1cee17eaf0c0aee7371e7f6f201ab6810c4721a7ac67dcfe1f70177
5
5
  SHA512:
6
- metadata.gz: 830f58c5a32ffaf48584fe0769508451e2b0719fb0fc3ed9c3c13a031fff5706e94485a9bf11dacbf0c9b48e95cfd4df07d875eb097c54e90fcf018858eca133
7
- data.tar.gz: 1bcdb766cbb4040a9f0734ebeb2a727ddc665bef8c58842b69a48dc33a965b0985ae4dd38cea714f2acca4ab12b79a55c37b5c1bba43985541c68ff80687d7f9
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
@@ -13,7 +13,7 @@ module Skylight
13
13
  end
14
14
 
15
15
  def respond_to_missing?(name, include_all = false)
16
- return false if name.to_s !~ /^to_ary$/
16
+ return false if name.to_s =~ /^to_ary$/
17
17
 
18
18
  @body.respond_to?(name, include_all)
19
19
  end
@@ -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.prepend(ClientInstrumentation)
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
@@ -3,5 +3,5 @@ module Skylight
3
3
  # for compatibility with semver when it is parsed by the rust agent.
4
4
  # This string will be transformed in the gemspec to "5.0.0.alpha"
5
5
  # to conform with rubygems.
6
- VERSION = "5.3.3".freeze
6
+ VERSION = "5.3.4".freeze
7
7
  end
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.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-07-13 00:00:00.000000000 Z
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.2.15
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.