signalfx-tracing 1.0.1 → 1.1.0
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 +4 -4
- data/README.md +12 -12
- data/bin/sfx-rb-trace-bootstrap +20 -4
- data/gem.deps.rb +3 -3
- data/lib/signalfx/tracing/instrumentation/grape.rb +1 -1
- data/lib/signalfx/tracing/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba2591d862b7c31748ce57e4011d1cf6e810811c
|
4
|
+
data.tar.gz: 5bd3c7c1d10012b3593f2eb9e474a2c4cd583fb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1270b6c9d02a08019277233f55f917a3257f05b559c5abaa31d0e10b1a8ea563caed502499a9642ec821d5d6cf33193a1e4cefb49c2c66035028a256660244ac
|
7
|
+
data.tar.gz: d03c8427a2c07913a447b831a2386150fe637025ce4114bb7dc1b72ec7596c410b0c2ecda3fd41a6082a6c821e7d27fe5edc2d789ba0782fda2fb40c0e928a90
|
data/README.md
CHANGED
@@ -129,18 +129,18 @@ When interfacing with these web servers as a Rack application, please configure
|
|
129
129
|
| Library | Versions Supported |
|
130
130
|
| ----------------------------------- | ------------------ |
|
131
131
|
| [ActiveRecord](#active-record) | ~> 5.0 |
|
132
|
-
| [Elasticsearch](#elasticsearch) | >=
|
133
|
-
| [Faraday](#faraday) |
|
134
|
-
| [Grape](#grape) |
|
135
|
-
| [Mongo](#mongo) | >= 2.1
|
136
|
-
| [Mysql2](#mysql2) | >= 0.
|
137
|
-
| [Net::HTTP](#nethttp) | Ruby
|
138
|
-
| [Rack](#rack) | >=
|
139
|
-
| [Rails](#rails) | >=
|
140
|
-
| [Redis](#redis) | >= 4.0.
|
141
|
-
| [RestClient](#restclient) | >=
|
142
|
-
| [Sequel](#sequel) | >= 3.
|
143
|
-
| [Sinatra](#sinatra) | >= 1.
|
132
|
+
| [Elasticsearch](#elasticsearch) | >= 6.0.2 |
|
133
|
+
| [Faraday](#faraday) | >= 0.9.0 |
|
134
|
+
| [Grape](#grape) | >= 0.13.0 |
|
135
|
+
| [Mongo](#mongo) | >= 2.1.0 |
|
136
|
+
| [Mysql2](#mysql2) | >= 0.4.0 |
|
137
|
+
| [Net::HTTP](#nethttp) | Ruby >= 2.0 |
|
138
|
+
| [Rack](#rack) | >= 0.1 |
|
139
|
+
| [Rails](#rails) | >= 3.0.0 |
|
140
|
+
| [Redis](#redis) | >= 4.0.0 |
|
141
|
+
| [RestClient](#restclient) | >= 1.5.0 |
|
142
|
+
| [Sequel](#sequel) | >= 3.47.0 |
|
143
|
+
| [Sinatra](#sinatra) | >= 1.0.0 |
|
144
144
|
|
145
145
|
## Active Record
|
146
146
|
|
data/bin/sfx-rb-trace-bootstrap
CHANGED
@@ -9,10 +9,10 @@ instrumentations = {
|
|
9
9
|
"faraday" => ["signalfx-faraday-instrumentation", "~> 0.1.1"],
|
10
10
|
"grape" => ["grape-instrumentation", "~> 0.1.0"],
|
11
11
|
"mongodb" => ["mongodb-instrumentation", "~> 0.1.1"],
|
12
|
-
"mysql2" => ["mysql2-instrumentation", "~> 0.2.
|
12
|
+
"mysql2" => ["mysql2-instrumentation", "~> 0.2.1"],
|
13
13
|
"nethttp" => ["nethttp-instrumentation", "~> 0.1.2"],
|
14
|
-
"rack" => ["rack-tracer",
|
15
|
-
"rails" => ["rails-instrumentation", "~> 0.1.
|
14
|
+
"rack" => ["rack-tracer", { git: 'git://github.com/signalfx/ruby-rack-tracer.git', branch: 'sfx_release' }],
|
15
|
+
"rails" => ["rails-instrumentation", "~> 0.1.3"],
|
16
16
|
"redis" => ["redis-instrumentation", "~> 0.1.1"],
|
17
17
|
"restclient" => ["restclient-instrumentation", "~> 0.1.1"],
|
18
18
|
"sequel" => ["sequel-instrumentation", "~> 0.1.0"],
|
@@ -41,12 +41,28 @@ def install_instrumentors(instrumentors, libs)
|
|
41
41
|
if instrumentors.has_key?(lib)
|
42
42
|
target = instrumentors[lib]
|
43
43
|
puts %Q{Installing instrumentation for target library "#{lib}": #{target[0]} "#{target[1]}".}
|
44
|
-
|
44
|
+
if target[1].respond_to?(:has_key?) && target[1].has_key?(:git)
|
45
|
+
install_from_git(*target)
|
46
|
+
else
|
47
|
+
Gem.install(*target)
|
48
|
+
end
|
45
49
|
else
|
46
50
|
puts %Q{signalfx-tracing has no target library "#{lib}".}
|
47
51
|
end
|
48
52
|
end
|
49
53
|
end
|
50
54
|
|
55
|
+
def install_from_git(target, options)
|
56
|
+
require 'rubygems/package'
|
57
|
+
rack = Gem::Source::Git.new(target, options[:git], options[:branch] || 'master', true)
|
58
|
+
rack.checkout
|
59
|
+
Dir.chdir rack.install_dir do
|
60
|
+
gs_file = Dir['*.gemspec'][0]
|
61
|
+
gemspec = Gem::Specification.load(gs_file)
|
62
|
+
gem = Gem::Package.build gemspec
|
63
|
+
Gem.install(gem)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
51
67
|
parser.parse(ARGV)
|
52
68
|
install_instrumentors(instrumentations, options.target_libraries)
|
data/gem.deps.rb
CHANGED
@@ -2,10 +2,10 @@ group :instrumentations do
|
|
2
2
|
gem 'activerecord-opentracing', '~> 0.2.1'
|
3
3
|
gem 'grape-instrumentation', "~> 0.1.0"
|
4
4
|
gem 'mongodb-instrumentation', '~> 0.1.1'
|
5
|
-
gem 'mysql2-instrumentation', '~> 0.2.
|
5
|
+
gem 'mysql2-instrumentation', '~> 0.2.1'
|
6
6
|
gem 'nethttp-instrumentation', '~> 0.1.2'
|
7
|
-
gem 'rack-tracer', '
|
8
|
-
gem 'rails-instrumentation', '0.1.
|
7
|
+
gem 'rack-tracer', git: 'git://github.com/signalfx/ruby-rack-tracer.git', branch: 'sfx_release'
|
8
|
+
gem 'rails-instrumentation', '0.1.3'
|
9
9
|
gem 'redis-instrumentation', '~> 0.1.1'
|
10
10
|
gem 'restclient-instrumentation', '~> 0.1.1'
|
11
11
|
gem 'sequel-instrumentation', '~> 0.1.0'
|
@@ -46,7 +46,7 @@ module SignalFx
|
|
46
46
|
base_instance_parent.insert(0, ::Rack::Tracer) if !base_instance_parent.middleware.any? { |m| m[2].to_s == 'Rack::Tracer'}
|
47
47
|
end
|
48
48
|
else
|
49
|
-
singleton_class.send(:alias_method, :inherited_original, :
|
49
|
+
singleton_class.send(:alias_method, :inherited_original, :inherited)
|
50
50
|
|
51
51
|
def self.inherited(api)
|
52
52
|
inherited_original(api)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: signalfx-tracing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SignalFx, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
141
|
+
rubygems_version: 2.2.0
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Auto-instrumentation framework for Ruby
|