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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fda35bd4aba894e089926f629c7cdc679b6352636ccc11a9628b0097acc198eb
4
- data.tar.gz: 15b14e845ce0f05394117ae356bc2d4497a87a9080fbee9e0f4531fbbe7ceb64
3
+ metadata.gz: ce791416a3cdf95eca52b3efc52aeb0600b038805d40dccc2ba6917395a0e3c3
4
+ data.tar.gz: ef21642c1d1d563c43013114f59273756dc60175184fa866d71def089cac1906
5
5
  SHA512:
6
- metadata.gz: de96dfed29893d2fe4b3242cb5610f743bfcce886b5593ae83fca8bb4bd021f9426cee56dfab1efae29afe20c8bc12793665025b237b7df50fdf5ccf822cfed7
7
- data.tar.gz: 792f7cbfb4f9c5d63659bf95564cce41f3348cee1403148d01a8abe0f8e6641a7cc94651dc419a837036d8df363ae40ed2116f0b897ba2599bb8470ac40ce91c
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
- get_cpuset_contents == '/' ? false : true
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
@@ -1,4 +1,4 @@
1
1
  module Instana
2
- VERSION = "1.11.1"
2
+ VERSION = "1.11.2"
3
3
  VERSION_FULL = "instana-#{VERSION}"
4
4
  end
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.1
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-15 00:00:00.000000000 Z
11
+ date: 2020-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler