instana 1.7.10 → 1.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -7
- data/Configuration.md +1 -1
- data/README.md +2 -2
- data/gemfiles/rails42.gemfile +1 -1
- data/gemfiles/rails50.gemfile +1 -1
- data/instana.gemspec +1 -1
- data/lib/instana/agent.rb +1 -1
- data/lib/instana/instrumentation/grpc.rb +2 -2
- data/lib/instana/instrumentation/sidekiq-client.rb +1 -1
- data/lib/instana/instrumentation/sidekiq-worker.rb +1 -1
- data/lib/instana/tracing/trace.rb +1 -1
- data/lib/instana/version.rb +1 -1
- data/test/tracing/tracer_async_test.rb +4 -4
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cccef02325537b6bc36734dcf92f211178d4fe5f1959beb171932e68f2d3b027
|
4
|
+
data.tar.gz: e319f913f62d175212f1aa44211a72e210d3a5297c1a4b148c724875610df534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a3016a3968512645f7134d906c5adc4458de5738a160feb19fb9b2ce7109698e1221ca109e342cb7d9ceef039f1430fe9fcabebd70356e7804af18aa470977b
|
7
|
+
data.tar.gz: d866a319bcae41c36e0e43486e3f89d886f124e64b05429236092fd731cc5326db6e71599d45ecd4665fb75170f83a45d7d80c84fb627e6ed25882fe6b5c89fc
|
data/.travis.yml
CHANGED
@@ -6,11 +6,8 @@ cache:
|
|
6
6
|
- vendor/bundle
|
7
7
|
|
8
8
|
rvm:
|
9
|
-
- 2.4.
|
10
|
-
- 2.
|
11
|
-
- 2.2.6
|
12
|
-
- 2.1.9
|
13
|
-
|
9
|
+
- 2.4.3
|
10
|
+
- 2.1.10
|
14
11
|
|
15
12
|
before_install:
|
16
13
|
- gem update --system
|
@@ -38,10 +35,10 @@ gemfile:
|
|
38
35
|
matrix:
|
39
36
|
exclude:
|
40
37
|
# Rails 5.0+ requires Ruby 2.2.2 or higher
|
41
|
-
- rvm: 2.1.
|
38
|
+
- rvm: 2.1.10
|
42
39
|
gemfile: gemfiles/rails50.gemfile
|
43
40
|
# Rails 3.2 doesn't work on Ruby 2.4.1
|
44
|
-
- rvm: 2.4.
|
41
|
+
- rvm: 2.4.3
|
45
42
|
gemfile: gemfiles/rails32.gemfile
|
46
43
|
|
47
44
|
notifications:
|
data/Configuration.md
CHANGED
@@ -24,7 +24,7 @@ The sensor tries to communicate with the Instana agent via IP 127.0.0.1 and as a
|
|
24
24
|
|
25
25
|
```Ruby
|
26
26
|
# Leverage environment variable
|
27
|
-
::Instana.config[:agent_host] = ENV['
|
27
|
+
::Instana.config[:agent_host] = ENV['INSTANA_AGENT_HOST']
|
28
28
|
|
29
29
|
# Custom agent port
|
30
30
|
::Instana.config[:agent_port] = 42699
|
data/README.md
CHANGED
@@ -57,7 +57,7 @@ This Ruby gem provides a simple API for tracing and also supports [OpenTracing](
|
|
57
57
|
|
58
58
|
## Documentation
|
59
59
|
|
60
|
-
You can find more documentation covering supported components and minimum versions in the Instana [documentation portal](https://instana.
|
60
|
+
You can find more documentation covering supported components and minimum versions in the Instana [documentation portal](https://docs.instana.io/ecosystem/ruby/).
|
61
61
|
|
62
62
|
## Want End User Monitoring?
|
63
63
|
|
@@ -84,7 +84,7 @@ with the browser instrumentation.
|
|
84
84
|
|
85
85
|
![Instana EUM example with metadata](https://s3.amazonaws.com/instana/Instana+Gameface+EUM+with+metadata+2016-12-22+at+15.32.01.png)
|
86
86
|
|
87
|
-
See also the [End User Monitoring](https://instana.
|
87
|
+
See also the [End User Monitoring](https://docs.instana.io/products/website_monitoring/) in the Instana documentation portal.
|
88
88
|
|
89
89
|
## Development
|
90
90
|
|
data/gemfiles/rails42.gemfile
CHANGED
@@ -42,7 +42,7 @@ gem 'turbolinks'
|
|
42
42
|
gem 'jbuilder', '~> 2.0'
|
43
43
|
gem 'sdoc', '~> 0.4.0', group: :doc
|
44
44
|
gem "pg"
|
45
|
-
gem "mysql2"
|
45
|
+
gem "mysql2", '0.4.10'
|
46
46
|
|
47
47
|
# Include the Instana Ruby gem's base set of gems
|
48
48
|
gemspec :path => File.expand_path(File.dirname(__FILE__) + '/../')
|
data/gemfiles/rails50.gemfile
CHANGED
data/instana.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency('pry', '>= 0.10.0')
|
33
33
|
spec.add_development_dependency('pry-byebug', '>= 3.0.0')
|
34
34
|
|
35
|
-
spec.add_runtime_dependency('sys-proctable', '
|
35
|
+
spec.add_runtime_dependency('sys-proctable', '< 1.2.0')
|
36
36
|
spec.add_runtime_dependency('get_process_mem', '>= 0.2.1')
|
37
37
|
spec.add_runtime_dependency('timers', '>= 4.0.0')
|
38
38
|
spec.add_runtime_dependency('oj', '~> 3.3')
|
data/lib/instana/agent.rb
CHANGED
@@ -118,7 +118,7 @@ module Instana
|
|
118
118
|
if @state == :unannounced
|
119
119
|
if host_agent_ready? && announce_sensor
|
120
120
|
transition_to(:announced)
|
121
|
-
::Instana.logger.
|
121
|
+
::Instana.logger.info "Host agent available. We're in business. (#{@state} pid:#{Process.pid} #{@process[:name]})"
|
122
122
|
end
|
123
123
|
end
|
124
124
|
end
|
@@ -39,7 +39,7 @@ if defined?(GRPC::ActiveCall) && ::Instana.config[:grpc][:enabled]
|
|
39
39
|
alias #{call_type} #{call_type}_with_instana
|
40
40
|
RUBY
|
41
41
|
end
|
42
|
-
::Instana.logger.
|
42
|
+
::Instana.logger.info 'Instrumenting GRPC client'
|
43
43
|
end
|
44
44
|
|
45
45
|
if defined?(GRPC::RpcDesc) && ::Instana.config[:grpc][:enabled]
|
@@ -80,5 +80,5 @@ if defined?(GRPC::RpcDesc) && ::Instana.config[:grpc][:enabled]
|
|
80
80
|
alias handle_#{call_type} handle_#{call_type}_with_instana
|
81
81
|
RUBY
|
82
82
|
end
|
83
|
-
::Instana.logger.
|
83
|
+
::Instana.logger.info 'Instrumenting GRPC server'
|
84
84
|
end
|
@@ -38,7 +38,7 @@ end
|
|
38
38
|
if defined?(::Sidekiq) && ::Instana.config[:'sidekiq-client'][:enabled]
|
39
39
|
::Sidekiq.configure_client do |cfg|
|
40
40
|
cfg.client_middleware do |chain|
|
41
|
-
::Instana.logger.
|
41
|
+
::Instana.logger.info "Instrumenting Sidekiq client"
|
42
42
|
chain.add ::Instana::Instrumentation::SidekiqClient
|
43
43
|
end
|
44
44
|
end
|
@@ -43,7 +43,7 @@ end
|
|
43
43
|
if defined?(::Sidekiq) && ::Instana.config[:'sidekiq-worker'][:enabled]
|
44
44
|
::Sidekiq.configure_server do |cfg|
|
45
45
|
cfg.server_middleware do |chain|
|
46
|
-
::Instana.logger.
|
46
|
+
::Instana.logger.info "Instrumenting Sidekiq worker"
|
47
47
|
chain.add ::Instana::Instrumentation::SidekiqWorker
|
48
48
|
end
|
49
49
|
end
|
@@ -131,7 +131,7 @@ module Instana
|
|
131
131
|
new_span = Span.new(name, @id, parent_id: @current_span.id)
|
132
132
|
new_span.set_tags(kvs) unless kvs.empty?
|
133
133
|
new_span.parent = @current_span
|
134
|
-
new_span[:
|
134
|
+
new_span[:deferred] = @has_async = true
|
135
135
|
|
136
136
|
# Add the new span to the span collection
|
137
137
|
@spans.add(new_span)
|
data/lib/instana/version.rb
CHANGED
@@ -244,10 +244,10 @@ class TracerAsyncTest < Minitest::Test
|
|
244
244
|
assert third_span.custom?
|
245
245
|
assert fourth_span.custom?
|
246
246
|
|
247
|
-
assert !first_span[:
|
248
|
-
assert second_span[:
|
249
|
-
assert third_span[:
|
250
|
-
assert fourth_span[:
|
247
|
+
assert !first_span[:deferred]
|
248
|
+
assert second_span[:deferred]
|
249
|
+
assert third_span[:deferred]
|
250
|
+
assert fourth_span[:deferred]
|
251
251
|
|
252
252
|
# KV checks
|
253
253
|
assert_equal 1, first_span[:data][:rack_start_kv]
|
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.7.
|
4
|
+
version: 1.7.11
|
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: 2018-
|
11
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: sys-proctable
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "<"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.2.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "<"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.2.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: get_process_mem
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -310,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
310
|
version: '0'
|
311
311
|
requirements: []
|
312
312
|
rubyforge_project:
|
313
|
-
rubygems_version: 2.6
|
313
|
+
rubygems_version: 2.7.6
|
314
314
|
signing_key:
|
315
315
|
specification_version: 4
|
316
316
|
summary: Ruby sensor for Instana
|