instana 1.4.5 → 1.4.6

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: bd0585947319a151c8067c4726bc5b20f0d73e0e
4
- data.tar.gz: 3ea5a585ba027ba999dd9f62e704c227c0b45765
3
+ metadata.gz: 359eb9e6f94b0a6ea70072310f8eb59c4b964766
4
+ data.tar.gz: 06daf1c2ef5af35a81216572131b5d0dca9212f9
5
5
  SHA512:
6
- metadata.gz: 37c91884551a3d2b7c01b9eff35129302730616a6d5cc3298a54bb0ff4e375704ffb279559d31c91a1830fe666971b4faf85c2eb5265387d8ea03aa06867fa46
7
- data.tar.gz: 316515781de2b2f892ff1b747c188af69372e8f4e7c514769f1e4c0764e76e57a31c6005ec681322677a38c5e1906ff371e5ae281b1f1e09159392e82e852982
6
+ metadata.gz: b8ccc331cc71b9b8d63f9fcd88f4aa83e89a346bd4072a30f140ef64252785bb3ac852fc5184bfc26781323281ccad46da8d2fc4a6167beb1940c36a7d97eeec
7
+ data.tar.gz: f0cdf9f600f5cffefe78bb5809fc16601a56bf57ddc69a3e57e7b1ed7a472215ba49e9ca143907bbd0e8af14839ab384051f5341cb5b07b16e04f27103b3d626
data/lib/instana/agent.rb CHANGED
@@ -101,9 +101,11 @@ module Instana
101
101
  # We attempt to announce this ruby sensor to the host agent.
102
102
  # In case of failure, we try again in 30 seconds.
103
103
  @announce_timer = @timers.every(30) do
104
- if host_agent_ready? && announce_sensor
105
- ::Instana.logger.warn "Host agent available. We're in business."
106
- transition_to(:announced)
104
+ if @state == :unannounced
105
+ if host_agent_ready? && announce_sensor
106
+ transition_to(:announced)
107
+ ::Instana.logger.warn "Host agent available. We're in business. (#{@state} pid:#{Process.pid} #{@process[:name]})"
108
+ end
107
109
  end
108
110
  end
109
111
 
@@ -1,4 +1,4 @@
1
1
  module Instana
2
- VERSION = "1.4.5"
2
+ VERSION = "1.4.6"
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.5
4
+ version: 1.4.6
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-05 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler