instana 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/instana.gemspec +3 -3
- data/lib/instana/util.rb +13 -1
- data/lib/instana/version.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd06dbcdef17ee23af827a31d44a8164cf411741f6b1e24cf663db29525aa78
|
4
|
+
data.tar.gz: cd225402ace448611a928ea3d791f6e5b14a1f0ce84d466cceb9946a9cb79c40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c66287deebd47b616870b4bc662ce5036f0bcb107dc722935c0c8c9df63b6c7a7e0cba6df2d0a7114980e77419d6f4e9972995c5d9427bf4c9af710b6349749f
|
7
|
+
data.tar.gz: 8c44efe3ab78a4a889ed829ece255fae612e1b5438024253a4577960a7634d891011c0b750a210040c215f2838746d5451c860f4b98bbd57a7a5ae725db5be7d
|
data/instana.gemspec
CHANGED
@@ -32,12 +32,12 @@ 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', '>= 0.9.2')
|
36
36
|
spec.add_runtime_dependency('get_process_mem', '>= 0.2.1')
|
37
37
|
spec.add_runtime_dependency('timers', '>= 4.0.0')
|
38
|
-
spec.add_runtime_dependency('oj', '
|
38
|
+
spec.add_runtime_dependency('oj', '>=3.0.11')
|
39
39
|
|
40
40
|
# Indirect dependency
|
41
41
|
# https://github.com/instana/ruby-sensor/issues/10
|
42
|
-
spec.add_runtime_dependency('ffi', '>=
|
42
|
+
spec.add_runtime_dependency('ffi', '>=1.0.11')
|
43
43
|
end
|
data/lib/instana/util.rb
CHANGED
@@ -137,7 +137,19 @@ module Instana
|
|
137
137
|
if File.exist?(cmdline_file)
|
138
138
|
cmdline = IO.read(cmdline_file).split(?\x00)
|
139
139
|
else
|
140
|
-
|
140
|
+
# Attempt to support older versions of sys-proctable and ffi.
|
141
|
+
#
|
142
|
+
# Alternatively we could use Sys::ProcTable::VERSION here but the
|
143
|
+
# consistency across historical versions is unknown. Alternative
|
144
|
+
# to the alternative, would be Ruby metaprogramming using the `arity`
|
145
|
+
# and `parameters` methods.
|
146
|
+
# e.g ProcTable.method(:ps).arity/parameters
|
147
|
+
if Gem.loaded_specs.key?("sys-proctable") &&
|
148
|
+
(Gem.loaded_specs["sys-proctable"].version >= Gem::Version.new("1.2.0"))
|
149
|
+
cmdline = ProcTable.ps(:pid => Process.pid).cmdline.split(' ')
|
150
|
+
else
|
151
|
+
cmdline = ProcTable.ps(Process.pid).cmdline.split(' ')
|
152
|
+
end
|
141
153
|
end
|
142
154
|
|
143
155
|
if RUBY_PLATFORM =~ /darwin/i
|
data/lib/instana/version.rb
CHANGED
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.9.
|
4
|
+
version: 1.9.2
|
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: 2019-
|
11
|
+
date: 2019-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.9.2
|
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:
|
110
|
+
version: 0.9.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: get_process_mem
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,30 +140,30 @@ dependencies:
|
|
140
140
|
name: oj
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 3.0.11
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 3.0.11
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: ffi
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.0.11
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
166
|
+
version: 1.0.11
|
167
167
|
description: The Instana gem collects and reports Ruby metrics and distibuted traces
|
168
168
|
to your Instana dashboard.
|
169
169
|
email:
|
@@ -316,8 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
316
316
|
- !ruby/object:Gem::Version
|
317
317
|
version: '0'
|
318
318
|
requirements: []
|
319
|
-
|
320
|
-
rubygems_version: 2.7.6
|
319
|
+
rubygems_version: 3.0.3
|
321
320
|
signing_key:
|
322
321
|
specification_version: 4
|
323
322
|
summary: Ruby Distributed Tracing & Metrics Sensor for Instana
|