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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 471cbcb22eaec9a409ac827524f93885834ab5bf
4
- data.tar.gz: 60492957df6c2e60f51560c8978fa48f1c72e744
3
+ metadata.gz: ba2591d862b7c31748ce57e4011d1cf6e810811c
4
+ data.tar.gz: 5bd3c7c1d10012b3593f2eb9e474a2c4cd583fb4
5
5
  SHA512:
6
- metadata.gz: 6cf787a6248ab1b57ed8bf68c2d67514bd0ff8aaccea9b27fb15c5004773f931f6dad37c2753cad43a3aa2770334df0683a7c9977a09d02fbd78cb09b17e06b8
7
- data.tar.gz: 6580a5104cc8997402f806b65846d26509a947459ed4b644a0047e303f4e8c71d91b3dc4ba2aeb906c57463a3e3748630a50ff6b8da92573442bbc5ae26efff6
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) | >= 5.x |
133
- | [Faraday](#faraday) | > 0.9.2 |
134
- | [Grape](#grape) | > 1.0.0 |
135
- | [Mongo](#mongo) | >= 2.1 |
136
- | [Mysql2](#mysql2) | >= 0.5.0 |
137
- | [Net::HTTP](#nethttp) | Ruby > 2.0 |
138
- | [Rack](#rack) | >= 2.0 |
139
- | [Rails](#rails) | >= 4.2.0 |
140
- | [Redis](#redis) | >= 4.0.1 |
141
- | [RestClient](#restclient) | >= 2.0.0 |
142
- | [Sequel](#sequel) | >= 3.48.0 |
143
- | [Sinatra](#sinatra) | >= 1.1.4 |
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
 
@@ -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.0"],
12
+ "mysql2" => ["mysql2-instrumentation", "~> 0.2.1"],
13
13
  "nethttp" => ["nethttp-instrumentation", "~> 0.1.2"],
14
- "rack" => ["rack-tracer", "~> 0.8"],
15
- "rails" => ["rails-instrumentation", "~> 0.1.2"],
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
- Gem.install(*target)
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.0'
5
+ gem 'mysql2-instrumentation', '~> 0.2.1'
6
6
  gem 'nethttp-instrumentation', '~> 0.1.2'
7
- gem 'rack-tracer', '~> 0.8'
8
- gem 'rails-instrumentation', '0.1.2'
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, :initial_setup)
49
+ singleton_class.send(:alias_method, :inherited_original, :inherited)
50
50
 
51
51
  def self.inherited(api)
52
52
  inherited_original(api)
@@ -1,5 +1,5 @@
1
1
  module Signalfx
2
2
  module Tracing
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
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.1
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-04 00:00:00.000000000 Z
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.5.2
141
+ rubygems_version: 2.2.0
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Auto-instrumentation framework for Ruby