instana 1.208.0 → 1.209.0.pre3

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: 2cec589ba39a110c9378497376585d47d2f968bd27c31cd1ccae259912a0d2b0
4
- data.tar.gz: f9df2c3f6e1543e6e4bb3efaa44026e295f7ca03ef59add49c291a3218b04e4d
3
+ metadata.gz: 9b04d24f1fc18b31e2395cef51c4cd2753f440d098541e67065ce752496eb4b6
4
+ data.tar.gz: 38547b89fbaf64866ec0edd2cd7c0f048180b6fac4b595bb214eb26cba1850d6
5
5
  SHA512:
6
- metadata.gz: b9907bdca2a8c40e46667e4b557765d83ce2c8846bb3b2e508fd59374890e54f8dc172bbff496d9f90f031a787db240d2cad3b84e4722efb4c33d9f1013f1c37
7
- data.tar.gz: 889963622d3fc6d24b6e4a3ca402d401b66c4608e9ff4a48e61998d99d4e59fb7a933f97963013a97d8bb1012c6405ab7a8ee32bfc80fcdad0301b3cb5c2cc5a
6
+ metadata.gz: 4ff975c80068e7c3d174906f3bee7671528036124708cbc5b9128746396be36a279e49ed49d46a1ff31f2d7ffc77a8533b036eb12a992f0721549b8ac8a998f3
7
+ data.tar.gz: 60384c06197a3c4305e4a377e35fec1bc805b56fe5476c0eccdee59b18f8b0937edd87baa0f75020737def79999dfaa3bad87b77f826c7afc5369db54c2787d7
data/.circleci/config.yml CHANGED
@@ -1,21 +1,6 @@
1
1
  version: 2.1
2
2
 
3
3
  executors:
4
- ruby_25:
5
- docker:
6
- - image: circleci/ruby:2.5-node
7
- environment:
8
- MEMCACHED_HOST: '127.0.0.1:11211'
9
- REDIS_URL: 'redis://127.0.0.1:6379'
10
- DATABASE_URL: 'sqlite3::memory:'
11
- - image: memcached
12
- - image: redis
13
- - image: circleci/dynamodb
14
- - image: minio/minio:latest
15
- command: ["server", "/data"]
16
- - image: s12v/sns
17
- - image: softwaremill/elasticmq-native
18
- - image: circleci/mongo:5-focal-ram
19
4
  ruby_26:
20
5
  docker:
21
6
  - image: circleci/ruby:2.6-node
@@ -46,19 +31,6 @@ executors:
46
31
  - image: s12v/sns
47
32
  - image: softwaremill/elasticmq-native
48
33
  - image: circleci/mongo:5-focal-ram
49
- ruby_25_mysql2:
50
- docker:
51
- - image: circleci/ruby:2.5-node
52
- environment:
53
- DATABASE_URL: "mysql2://root@127.0.0.1:3306/ci_test"
54
- - image: mariadb
55
- environment:
56
- MYSQL_DATABASE: 'ci_test'
57
- MYSQL_USER: 'root'
58
- MYSQL_PASSWORD: ''
59
- MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
60
- MYSQL_ROOT_PASSWORD: ''
61
- MYSQL_ROOT_HOST: '%'
62
34
  ruby_26_mysql2:
63
35
  docker:
64
36
  - image: circleci/ruby:2.6-node
@@ -85,15 +57,6 @@ executors:
85
57
  MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
86
58
  MYSQL_ROOT_PASSWORD: ''
87
59
  MYSQL_ROOT_HOST: '%'
88
- ruby_25_postgres:
89
- docker:
90
- - image: circleci/ruby:2.6-node
91
- environment:
92
- DATABASE_URL: "postgres://postgres:test@127.0.0.1:5432/ci_test"
93
- - image: postgres
94
- environment:
95
- POSTGRES_PASSWORD: 'test'
96
- POSTGRES_DB: 'ci_test'
97
60
  ruby_26_postgres:
98
61
  docker:
99
62
  - image: circleci/ruby:2.6-node
@@ -251,7 +214,6 @@ workflows:
251
214
  stack:
252
215
  - ruby_27
253
216
  - ruby_26
254
- - ruby_25
255
217
  libraries:
256
218
  jobs:
257
219
  - test_apprisal:
@@ -260,7 +222,6 @@ workflows:
260
222
  stack:
261
223
  - ruby_27
262
224
  - ruby_26
263
- - ruby_25
264
225
  gemfile:
265
226
  - "./gemfiles/aws_30.gemfile"
266
227
  - "./gemfiles/cuba_30.gemfile"
@@ -292,13 +253,10 @@ workflows:
292
253
  stack:
293
254
  - ruby_27
294
255
  - ruby_26
295
- - ruby_25
296
256
  - ruby_27_postgres
297
257
  - ruby_26_postgres
298
- - ruby_25_postgres
299
258
  - ruby_27_mysql2
300
259
  - ruby_26_mysql2
301
- - ruby_25_mysql2
302
260
  gemfile:
303
261
  - "./gemfiles/rails_60.gemfile"
304
262
  - "./gemfiles/rails_52.gemfile"
@@ -5,7 +5,7 @@ module Instana
5
5
  module Activators
6
6
  class Sinatra < Activator
7
7
  def can_instrument?
8
- defined?(::Instana::Rack) && defined?(::Sinatra)
8
+ defined?(::Instana::Rack) && defined?(::Sinatra) && defined?(::Sinatra::Base)
9
9
  end
10
10
 
11
11
  def instrument
@@ -34,6 +34,8 @@ module Instana
34
34
  raise DiscoveryError, "Discovery response was #{discovery_response.code} with `#{payload}`." unless discovery_response.ok?
35
35
 
36
36
  discovery = discovery_response.json
37
+ raise DiscoveryError, "Expected discovery to be a Hash, not a `#{discovery.class}`." unless discovery.is_a?(Hash)
38
+
37
39
  @logger.debug("Discovery complete (`#{discovery}`). Waiting for agent.")
38
40
  wait_for_backend(discovery['pid'])
39
41
  @logger.debug("Agent ready.")
data/lib/instana/base.rb CHANGED
@@ -38,5 +38,3 @@ module Instana
38
38
  end
39
39
  end
40
40
  end
41
-
42
- ::Instana.logger.info "Stan is on the scene. Starting Instana instrumentation version #{::Instana::VERSION}"
@@ -2,6 +2,6 @@
2
2
  # (c) Copyright Instana Inc. 2016
3
3
 
4
4
  module Instana
5
- VERSION = "1.208.0"
5
+ VERSION = "1.209.0.pre3"
6
6
  VERSION_FULL = "instana-#{VERSION}"
7
7
  end
data/lib/instana.rb CHANGED
@@ -12,5 +12,11 @@ require 'instana/setup'
12
12
  # the thread of your choice.
13
13
  #
14
14
 
15
- ::Instana::Activator.start
16
- ::Instana.agent.spawn_background_thread
15
+ # :nocov:
16
+ unless ENV.fetch('INSTANA_DISABLE', false)
17
+ ::Instana::Activator.start
18
+ ::Instana.agent.spawn_background_thread
19
+
20
+ ::Instana.logger.info "Stan is on the scene. Starting Instana instrumentation version #{::Instana::VERSION}"
21
+ end
22
+ # :nocov:
@@ -12,6 +12,7 @@ class HostAgentActivationObserverTest < Minitest::Test
12
12
  stub_request(:put, "http://10.10.10.10:9292/com.instana.plugin.ruby.discovery")
13
13
  .and_timeout
14
14
  .and_return(status: 500, body: '{"ok": false}')
15
+ .and_return(status: 200, body: '[{"pid": 1234}]')
15
16
  .and_return(status: 200, body: '{"pid": 1234}')
16
17
 
17
18
  stub_request(:head, "http://10.10.10.10:9292/com.instana.plugin.ruby.1234")
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.208.0
4
+ version: 1.209.0.pre3
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-11-17 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -375,9 +375,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
375
375
  version: '2.1'
376
376
  required_rubygems_version: !ruby/object:Gem::Requirement
377
377
  requirements:
378
- - - ">="
378
+ - - ">"
379
379
  - !ruby/object:Gem::Version
380
- version: '0'
380
+ version: 1.3.1
381
381
  requirements: []
382
382
  rubygems_version: 3.1.6
383
383
  signing_key: