instana 1.4.1 → 1.4.2
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 +4 -4
- data/lib/instana/agent.rb +1 -1
- data/lib/instana/util.rb +7 -9
- data/lib/instana/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3cae516e462dbd350c30cf8e513758b3d9928bc2
|
|
4
|
+
data.tar.gz: ccc8a1aab6f2e63249514788d080c546dbe9e44d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6898e624c5943b389c6d116f7c43ec8c4b3eb0582806fd809cbf2528343de990163e1d6d2c375e5d5cae70e5a8ff3efbed1091fac0f3f7dde8cae4c97aad8b39
|
|
7
|
+
data.tar.gz: 2cfa76f168aea300c64b74b895d95ac75b792ac86ff15aa84031269a1cdd60a39ec33356be8f9f54034193f38b3a50562dbf7eeed710c907e4819aeb9027ecb9
|
data/lib/instana/agent.rb
CHANGED
|
@@ -172,9 +172,9 @@ module Instana
|
|
|
172
172
|
|
|
173
173
|
announce_payload = {}
|
|
174
174
|
announce_payload[:pid] = pid_namespace? ? get_real_pid : Process.pid
|
|
175
|
+
announce_payload[:name] = @process[:name]
|
|
175
176
|
announce_payload[:args] = @process[:arguments]
|
|
176
177
|
|
|
177
|
-
|
|
178
178
|
if @is_linux && !::Instana.test?
|
|
179
179
|
# We create an open socket to the host agent in case we are running in a container
|
|
180
180
|
# and the real pid needs to be detected.
|
data/lib/instana/util.rb
CHANGED
|
@@ -137,21 +137,19 @@ module Instana
|
|
|
137
137
|
if File.exist?(cmdline_file)
|
|
138
138
|
cmdline = IO.read(cmdline_file).split(?\x00)
|
|
139
139
|
else
|
|
140
|
-
cmdline = ProcTable.ps(Process.pid).cmdline.split(
|
|
140
|
+
cmdline = ProcTable.ps(Process.pid).cmdline.split(' ')
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
process[:name] = cmdline.shift
|
|
144
|
-
process[:arguments] = cmdline
|
|
145
|
-
|
|
146
143
|
if RUBY_PLATFORM =~ /darwin/i
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
process[:name].
|
|
144
|
+
cmdline.delete_if{ |e| e.include?('=') }
|
|
145
|
+
process[:name] = cmdline.join(' ')
|
|
146
|
+
else
|
|
147
|
+
process[:name] = cmdline.shift
|
|
148
|
+
process[:arguments] = cmdline
|
|
151
149
|
end
|
|
152
150
|
|
|
153
151
|
process[:pid] = Process.pid
|
|
154
|
-
# This is usually Process.pid but in the case of
|
|
152
|
+
# This is usually Process.pid but in the case of containers, the host agent
|
|
155
153
|
# will return to us the true host pid in which we use to report data.
|
|
156
154
|
process[:report_pid] = nil
|
|
157
155
|
process
|
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.4.
|
|
4
|
+
version: 1.4.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: 2017-03-
|
|
11
|
+
date: 2017-03-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|