instana 1.4.4 → 1.4.5
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.rb +9 -7
- 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: bd0585947319a151c8067c4726bc5b20f0d73e0e
|
4
|
+
data.tar.gz: 3ea5a585ba027ba999dd9f62e704c227c0b45765
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c91884551a3d2b7c01b9eff35129302730616a6d5cc3298a54bb0ff4e375704ffb279559d31c91a1830fe666971b4faf85c2eb5265387d8ea03aa06867fa46
|
7
|
+
data.tar.gz: 316515781de2b2f892ff1b747c188af69372e8f4e7c514769f1e4c0764e76e57a31c6005ec681322677a38c5e1906ff371e5ae281b1f1e09159392e82e852982
|
data/lib/instana/agent.rb
CHANGED
@@ -44,12 +44,13 @@ module Instana
|
|
44
44
|
@default_gateway = nil
|
45
45
|
end
|
46
46
|
|
47
|
+
# Collect initial process info - repeat prior to announce
|
48
|
+
# in `announce_sensor` in case of process rename, after fork etc.
|
49
|
+
@process = ::Instana::Util.collect_process_info
|
50
|
+
|
47
51
|
# The agent UUID returned from the host agent
|
48
52
|
@agent_uuid = nil
|
49
53
|
|
50
|
-
# Collect process information
|
51
|
-
@process = ::Instana::Util.collect_process_info
|
52
|
-
|
53
54
|
# This will hold info on the discovered agent host
|
54
55
|
@discovered = nil
|
55
56
|
end
|
@@ -64,9 +65,6 @@ module Instana
|
|
64
65
|
# new thread.
|
65
66
|
srand
|
66
67
|
|
67
|
-
# Re-collect process information post fork
|
68
|
-
@process = ::Instana::Util.collect_process_info
|
69
|
-
|
70
68
|
transition_to(:unannounced)
|
71
69
|
setup
|
72
70
|
spawn_background_thread
|
@@ -102,7 +100,7 @@ module Instana
|
|
102
100
|
# The announce timer
|
103
101
|
# We attempt to announce this ruby sensor to the host agent.
|
104
102
|
# In case of failure, we try again in 30 seconds.
|
105
|
-
@announce_timer = @timers.
|
103
|
+
@announce_timer = @timers.every(30) do
|
106
104
|
if host_agent_ready? && announce_sensor
|
107
105
|
::Instana.logger.warn "Host agent available. We're in business."
|
108
106
|
transition_to(:announced)
|
@@ -170,6 +168,10 @@ module Instana
|
|
170
168
|
return false
|
171
169
|
end
|
172
170
|
|
171
|
+
# Always re-collect process info before announce in case the process name has been
|
172
|
+
# re-written (looking at you puma!)
|
173
|
+
@process = ::Instana::Util.collect_process_info
|
174
|
+
|
173
175
|
announce_payload = {}
|
174
176
|
announce_payload[:pid] = pid_namespace? ? get_real_pid : Process.pid
|
175
177
|
announce_payload[:name] = @process[:name]
|
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.5
|
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-05-
|
11
|
+
date: 2017-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|