skylight 5.3.0 → 5.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/skylight/probes/elasticsearch.rb +10 -1
- data/lib/skylight/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: 25e5b7ab0cc3d787b7192d6ec29ea90ce7c1088f13660d58601cc00d30a88b27
|
4
|
+
data.tar.gz: a171ca96752f9e2f6cf02a6fc18a3a64b7fa4c280d9d2c2428d489c6a3b46d85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a388dd96bd6253ae8db5b5dae947be514888714bdcd0d4a91d0a3e4d15b33c826da018637ce24e2341eeaab917ab6b84671eae481d872a99dc1bc7c8c2dbc400
|
7
|
+
data.tar.gz: 41bcd860d6ae637670cc0b0abde0a4b9e4970cecfc19fab781fa15cdee24d73bcc2fec62dfa984f24568fc27d1b7379ff2791a5f49a4e7107992f620ab7a45cb
|
data/CHANGELOG.md
CHANGED
@@ -3,8 +3,17 @@ module Skylight
|
|
3
3
|
module Elasticsearch
|
4
4
|
class Probe
|
5
5
|
def install
|
6
|
+
const =
|
7
|
+
if defined?(::Elasticsearch::Transport::Transport::Base)
|
8
|
+
::Elasticsearch::Transport::Transport::Base
|
9
|
+
elsif defined?(::Elastic::Transport::Transport::Base)
|
10
|
+
::Elastic::Transport::Transport::Base
|
11
|
+
else
|
12
|
+
return false
|
13
|
+
end
|
14
|
+
|
6
15
|
# Prepending doesn't work here since this a module that's already been included
|
7
|
-
|
16
|
+
const.class_eval do
|
8
17
|
alias_method :perform_request_without_sk, :perform_request
|
9
18
|
def perform_request(method, path, *args, &block)
|
10
19
|
ActiveSupport::Notifications.instrument(
|
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.1
|
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-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|