stackify-ruby-apm 1.14.3 → 1.14.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stackify_apm/logger/log_device.rb +2 -0
- data/lib/stackify_apm/spies/redis.rb +7 -3
- data/lib/stackify_apm/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: 5d95a01fea8c43d40a4cf1f0f541f539e31d9e022d985e70096d3b01260cbab8
|
4
|
+
data.tar.gz: c4a871133a02ba479ceea744f9f868ab34910c291e947fe62cc644330f6935c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4ca5f2806b494bc98ecb9828a01dbb3e459328401c8a880a4239d0ff8ad16073ace3a7e52ec02fb93b633f14f1b6493dd46daa381ee0ef7fc9ac23a1a319cdb
|
7
|
+
data.tar.gz: 873b62a9ef92ef3ea222ea7ed2fbfff26e41b2114ea030ac668646db394e0093feab0588d08e390776fcc38b8d6ff152cf6df1d472b886be0f102a71f5d0ab90
|
@@ -88,6 +88,8 @@ module StackifyRubyAPM
|
|
88
88
|
|
89
89
|
begin
|
90
90
|
dir_name = File.dirname(filename)
|
91
|
+
# repath current file due to windows separator \\ doesn't work with Dir.glob
|
92
|
+
dir_name = dir_name.split(File::ALT_SEPARATOR).join(File::SEPARATOR)
|
91
93
|
search_files = File.join("#{dir_name}", "{[!stackify-ruby-apm]*}.log")
|
92
94
|
log_files = Dir.glob(search_files).sort_by { |f| File.stat(f).mtime}.reverse
|
93
95
|
|
@@ -33,7 +33,11 @@ module StackifyRubyAPM
|
|
33
33
|
# Possible formats:
|
34
34
|
# `<namespace:key/method_name/expires_in=300/ttl=60/>`
|
35
35
|
# `<namespace:key/expires_in=300/ttl=60/>`
|
36
|
-
|
36
|
+
if redis_key.nil?
|
37
|
+
redis_key = redis_details[1]
|
38
|
+
else
|
39
|
+
redis_key = args[0..1].join('/') if args.length > 1 && !args[1].include?('=')
|
40
|
+
end
|
37
41
|
end
|
38
42
|
|
39
43
|
return call_without_apm(command, &block) if command[0] == :auth
|
@@ -48,8 +52,8 @@ module StackifyRubyAPM
|
|
48
52
|
OPERATION: name,
|
49
53
|
URL: "#{self.options[:host]}:#{self.options[:port]}"
|
50
54
|
}.tap do |hash|
|
51
|
-
hash[:CACHEKEY] = redis_key unless redis_key.empty?
|
52
|
-
hash[:CACHENAME] = redis_nspace unless redis_nspace.empty?
|
55
|
+
hash[:CACHEKEY] = redis_key unless redis_key.nil? || redis_key.empty?
|
56
|
+
hash[:CACHENAME] = redis_nspace unless redis_nspace.nil? || redis_nspace.empty?
|
53
57
|
end
|
54
58
|
|
55
59
|
ctx = Span::Context.new(context)
|
data/lib/stackify_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackify-ruby-apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stackify
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|