instana 1.199.2 → 1.199.3

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
  SHA256:
3
- metadata.gz: 59560cefe64546d0f6b072839e04cc21d5abe77087111a66acd48b16433bd6b3
4
- data.tar.gz: f56219f6107b11353e51bac144119d698baa3e4d5859929cd59a47627761cb02
3
+ metadata.gz: 5f50b5331be370b903eef0f43c5565c82e6dc91776ee42f2a406820ab77a6281
4
+ data.tar.gz: b9f19763f4e27082ecb893706b016e181d9b03993b49e91dc0d106ced00c2689
5
5
  SHA512:
6
- metadata.gz: b3c9cc9ab3175e4f47cf722c91a8c40189fe27fd21fd4c71fbcbf1d82c65af205c3afb9636add9418ba2c52a3adf05940c948819700491c9a51d719b40566781
7
- data.tar.gz: 0daca1718f70837be8504ab239a034432c50cf46a1380bfcf46b40059638a31455b8904c2b5019b7f880787acbe0462ada2457f135f451a680fa2253b68a0ce0
6
+ metadata.gz: 995d7c897b69f00439becf36790caebd57b7e39738ff480ea17e1b4a7c47487f6c28f322bd8b39149e6a182453672b285bc49245b904cbe9eba6cf316ea30582
7
+ data.tar.gz: 89c525c7d9ed2b4702b15e6fc8f74158973b5455007e5adbc9250cb504e8d82c5426e257a45690a3518f600eba2f4eb76b6df40eb2bebb2376987627918d0a66
@@ -16,11 +16,8 @@ module Instana
16
16
  ::Resque::Worker.prepend(::Instana::Instrumentation::ResqueWorker)
17
17
  ::Resque::Job.prepend(::Instana::Instrumentation::ResqueJob)
18
18
 
19
- ::Resque.before_fork do |_job|
20
- ::Instana.agent.before_resque_fork
21
- end
22
19
  ::Resque.after_fork do |_job|
23
- ::Instana.agent.after_resque_fork
20
+ ::Instana.agent.after_fork
24
21
  end
25
22
 
26
23
  # Set this so we assure that any remaining collected traces are reported at_exit
@@ -32,6 +32,9 @@ module Instana
32
32
  @timer.execute
33
33
  end
34
34
 
35
+ alias start spawn_background_thread
36
+ alias after_fork spawn_background_thread
37
+
35
38
  # @return [Boolean] true if the agent able to send spans to the backend
36
39
  def ready?
37
40
  true
@@ -2,6 +2,6 @@
2
2
  # (c) Copyright Instana Inc. 2016
3
3
 
4
4
  module Instana
5
- VERSION = "1.199.2"
5
+ VERSION = "1.199.3"
6
6
  VERSION_FULL = "instana-#{VERSION}"
7
7
  end
@@ -44,4 +44,14 @@ class HostAgentTest < Minitest::Test
44
44
  subject = Instana::Backend::HostAgent.new(discovery: discovery)
45
45
  assert_equal 1, subject.source[:e]
46
46
  end
47
+
48
+ def test_start
49
+ subject = Instana::Backend::HostAgent.new
50
+ assert subject.respond_to? :start
51
+ end
52
+
53
+ def test_after_fork
54
+ subject = Instana::Backend::HostAgent.new
55
+ assert subject.respond_to? :after_fork
56
+ end
47
57
  end
@@ -70,4 +70,14 @@ class ServerlesAgentTest < Minitest::Test
70
70
 
71
71
  subject.timer.block.call
72
72
  end
73
+
74
+ def test_start
75
+ subject = Instana::Backend::ServerlessAgent.new([], timer_class: MockTimer, backend_uri: 'http://10.10.10.10:9292/', logger: Logger.new('/dev/null'))
76
+ assert subject.respond_to? :start
77
+ end
78
+
79
+ def test_after_fork
80
+ subject = Instana::Backend::ServerlessAgent.new([], timer_class: MockTimer, backend_uri: 'http://10.10.10.10:9292/', logger: Logger.new('/dev/null'))
81
+ assert subject.respond_to? :after_fork
82
+ end
73
83
  end
data/test/secrets_test.rb CHANGED
@@ -98,8 +98,6 @@ class SecretsTest < Minitest::Test
98
98
 
99
99
  def assert_redacted(str, keys, raw_str: false)
100
100
  params = raw_str ? CGI.parse(str) : CGI.parse(URI(str).query)
101
- pp params
102
-
103
101
  assert_equal keys, params.select { |_, v| v == %w(<redacted>) }.keys, 'to be redacted'
104
102
  end
105
103
  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.199.2
4
+ version: 1.199.3
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: 2021-04-12 00:00:00.000000000 Z
11
+ date: 2021-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler