instana 1.11.1 → 1.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/instana/agent/helpers.rb +13 -2
- data/lib/instana/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: ce791416a3cdf95eca52b3efc52aeb0600b038805d40dccc2ba6917395a0e3c3
|
4
|
+
data.tar.gz: ef21642c1d1d563c43013114f59273756dc60175184fa866d71def089cac1906
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fd21c41d48273ea1d1560d2d32b6b70a88935b35ba7118b5a77fea07c886a027992be6cfe7bee8cad5ea7dd44e297bee6b43fdc450c8576a6547ea8a2ea15e2
|
7
|
+
data.tar.gz: a84b5b85e14fa88474876c98aed9c06f40b24b3aae6aded2939eb97fc8fb93105acb86c0b1b46320c014971488ace8cdafbfc39945bf90d70338f2a13edee17b
|
@@ -13,7 +13,15 @@ module AgentHelpers
|
|
13
13
|
# 2. /proc/self/cpuset exists and contents include a container id
|
14
14
|
def running_in_container?
|
15
15
|
return false unless @is_linux
|
16
|
-
|
16
|
+
|
17
|
+
cpuset_contents = get_cpuset_contents
|
18
|
+
|
19
|
+
if cpuset_contents.nil? or cpuset_contents == '/'
|
20
|
+
::Instana.logger.debug "running_in_container? == no"
|
21
|
+
return false
|
22
|
+
end
|
23
|
+
::Instana.logger.debug "running_in_container? == yes"
|
24
|
+
true
|
17
25
|
end
|
18
26
|
|
19
27
|
# Attempts to determine the true process ID by querying the
|
@@ -40,7 +48,10 @@ module AgentHelpers
|
|
40
48
|
if File.exist?(cpuset_file)
|
41
49
|
contents = File.open(cpuset_file, "r").read
|
42
50
|
end
|
43
|
-
contents
|
51
|
+
contents.chomp
|
52
|
+
rescue Exception => e
|
53
|
+
Instana.logger.debug { "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" }
|
54
|
+
return nil
|
44
55
|
end
|
45
56
|
|
46
57
|
# Returns the PID that we are reporting to
|
data/lib/instana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|