lib/instana/agent.rb in instana-1.4.1 vs lib/instana/agent.rb in instana-1.4.2
- old
+ new
@@ -170,11 +170,11 @@
return false
end
announce_payload = {}
announce_payload[:pid] = pid_namespace? ? get_real_pid : Process.pid
+ announce_payload[:name] = @process[:name]
announce_payload[:args] = @process[:arguments]
-
if @is_linux && !::Instana.test?
# We create an open socket to the host agent in case we are running in a container
# and the real pid needs to be detected.
socket = TCPSocket.new @discovered[:agent_host], @discovered[:agent_port]