instana 1.199.3 → 1.199.4

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
  SHA256:
3
- metadata.gz: 5f50b5331be370b903eef0f43c5565c82e6dc91776ee42f2a406820ab77a6281
4
- data.tar.gz: b9f19763f4e27082ecb893706b016e181d9b03993b49e91dc0d106ced00c2689
3
+ metadata.gz: 312c663203c4deb4371785441a0d2fa2283b9809795bbfb2f5e00a6d9d29cea8
4
+ data.tar.gz: 23393b6158d94cdfd25c1f25c5af4ec6575fdda93b2e5f7292b02dd3e929841c
5
5
  SHA512:
6
- metadata.gz: 995d7c897b69f00439becf36790caebd57b7e39738ff480ea17e1b4a7c47487f6c28f322bd8b39149e6a182453672b285bc49245b904cbe9eba6cf316ea30582
7
- data.tar.gz: 89c525c7d9ed2b4702b15e6fc8f74158973b5455007e5adbc9250cb504e8d82c5426e257a45690a3518f600eba2f4eb76b6df40eb2bebb2376987627918d0a66
6
+ metadata.gz: b010383d56419547cc186a43532d90a1f26c01e3a0cde126257fc9e2633e033cccb7ec8b34583808a2f806cb58b579d4384dbdc43f49e7064f32099be1d5eff4
7
+ data.tar.gz: 30359b5a5e3e25d86517773a9e9aa53c7688470f34472c40ce3078d28f6cc025b56d5417916eba377587b9abd45943f5459f9029e7bf1f2db3ad2612a1e372c9
@@ -19,19 +19,24 @@ module Instana
19
19
  return if ENV.key?('INSTANA_TEST')
20
20
 
21
21
  @future = Concurrent::Promises.future do
22
- client = until_not_nil { HostAgentLookup.new.call }
23
- @discovery.delete_observers
24
- @discovery
25
- .with_observer(HostAgentActivationObserver.new(client, @discovery))
26
- .with_observer(HostAgentReportingObserver.new(client, @discovery))
27
-
28
- @discovery.swap { nil }
29
- client
22
+ announce
30
23
  end
31
24
  end
32
25
 
33
26
  alias start spawn_background_thread
34
- alias after_fork spawn_background_thread
27
+
28
+ def announce
29
+ client = until_not_nil { HostAgentLookup.new.call }
30
+ @discovery.delete_observers
31
+ @discovery
32
+ .with_observer(HostAgentActivationObserver.new(client, @discovery))
33
+ .with_observer(HostAgentReportingObserver.new(client, @discovery))
34
+
35
+ @discovery.swap { nil }
36
+ client
37
+ end
38
+
39
+ alias after_fork announce
35
40
 
36
41
  # @return [Boolean] true if the agent able to send spans to the backend
37
42
  def ready?
@@ -82,7 +82,7 @@ module Instana
82
82
  def try_forever_with_backoff
83
83
  yield
84
84
  rescue DiscoveryError, Net::OpenTimeout => e
85
- @logger.warn(e)
85
+ @logger.debug(e)
86
86
  sleep(@wait_time)
87
87
  retry
88
88
  rescue StandardError => e
@@ -2,6 +2,6 @@
2
2
  # (c) Copyright Instana Inc. 2016
3
3
 
4
4
  module Instana
5
- VERSION = "1.199.3"
5
+ VERSION = "1.199.4"
6
6
  VERSION_FULL = "instana-#{VERSION}"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.199.3
4
+ version: 1.199.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Giacomo Lombardo