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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9acd85150980908ae5191e57b120c3d41b9bcef
4
- data.tar.gz: 748ac98229a580a4622ec9aa467880909cf3d14c
3
+ metadata.gz: 3cae516e462dbd350c30cf8e513758b3d9928bc2
4
+ data.tar.gz: ccc8a1aab6f2e63249514788d080c546dbe9e44d
5
5
  SHA512:
6
- metadata.gz: 1ca710a879105e4d700044bb084f8445e924402f0ef781e394366459f9d2e6d06ff49f75f27b92ebf026b1ef21694e9cb36c52ba4fa0961a3adaa2bcec19d7d4
7
- data.tar.gz: fcebbf2c4b833afaf93bb6d5b81caa82d4cb0c395cce4b70d19bc433e8b0d704f05cfd25549456fa84653332953d069cb51d28a39725e4dcd0d2bf74eb2caf1b
6
+ metadata.gz: 6898e624c5943b389c6d116f7c43ec8c4b3eb0582806fd809cbf2528343de990163e1d6d2c375e5d5cae70e5a8ff3efbed1091fac0f3f7dde8cae4c97aad8b39
7
+ data.tar.gz: 2cfa76f168aea300c64b74b895d95ac75b792ac86ff15aa84031269a1cdd60a39ec33356be8f9f54034193f38b3a50562dbf7eeed710c907e4819aeb9027ecb9
@@ -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.
@@ -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(?\x00)
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
- # Handle OSX bug where env vars show up at the end of process name
148
- # such as MANPATH etc..
149
- process[:name].gsub!(/[_A-Z]+=\S+/, '')
150
- process[:name].rstrip!
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 docker, the host agent
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
@@ -1,4 +1,4 @@
1
1
  module Instana
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.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.4.1
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-24 00:00:00.000000000 Z
11
+ date: 2017-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler