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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2d72e4ebe2d8f5b7c78ea47e40e04a37ba063e4
4
- data.tar.gz: 97b8eb1c78242d4c94d48370a4916c90c0217012
3
+ metadata.gz: bd0585947319a151c8067c4726bc5b20f0d73e0e
4
+ data.tar.gz: 3ea5a585ba027ba999dd9f62e704c227c0b45765
5
5
  SHA512:
6
- metadata.gz: 9d1176fc22477cacbaa80940fb73f422183c938c1228b9134e2b3d3cd36452db779318a5b06ec8ae891afaeabdca8052191aac623c97ddc158c6ae90e655917a
7
- data.tar.gz: f2523904ba96880a37254e8fcea1ae64d91fa51bb46baebcbccf7831612118232d7ecdd1b91d847717b9864dce8cfaf670121ca4b19b675df8241c06bc0a5484
6
+ metadata.gz: 37c91884551a3d2b7c01b9eff35129302730616a6d5cc3298a54bb0ff4e375704ffb279559d31c91a1830fe666971b4faf85c2eb5265387d8ea03aa06867fa46
7
+ data.tar.gz: 316515781de2b2f892ff1b747c188af69372e8f4e7c514769f1e4c0764e76e57a31c6005ec681322677a38c5e1906ff371e5ae281b1f1e09159392e82e852982
@@ -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.now_and_every(30) do
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]
@@ -1,4 +1,4 @@
1
1
  module Instana
2
- VERSION = "1.4.4"
2
+ VERSION = "1.4.5"
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.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-04 00:00:00.000000000 Z
11
+ date: 2017-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler