signalfx-tracing 2.0.0 → 2.1.1
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 +2 -2
 - data/bin/sfx-rb-trace-bootstrap +15 -15
 - data/gem.deps.rb +15 -15
 - data/lib/signalfx/tracing/span.rb +5 -14
 - data/lib/signalfx/tracing/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2f20ce1d0998b95c507dd19b340537e51865387f1ab5022c45185746e0d03667
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 0ada0dc7104f4dbaedd9194928117e7baf0aa23ae3ba66f69371bfc253582f0c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: baedb458a7cd326d523f53845cfc8157201de6d34811fde58c3643e8da2cb081e0a83186ee53e7815e86db11671659d87a33ab06ef56d496e74e3e0007fcfc34
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b0ad72691b7a438b008d4748a4717cfc0f1a004b8cb939a1392f2fb88aa4cb7030807a23b8132829d80200443da11096fa21afad987b330b20e40fbaf230a7b9
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -158,7 +158,7 @@ This instrumentation creates spans for each Active Record query using the Active 
     | 
|
| 
       158 
158 
     | 
    
         
             
            Support notifications framework. If you configure Rails instrumentation, it also configures Active Record instrumentation, so you don't need to instrument both.
         
     | 
| 
       159 
159 
     | 
    
         | 
| 
       160 
160 
     | 
    
         
             
            The source for this instrumentation is located
         
     | 
| 
       161 
     | 
    
         
            -
            [here](https://github.com/ 
     | 
| 
      
 161 
     | 
    
         
            +
            [here](https://github.com/signalfx/ruby-activerecord-opentracing).
         
     | 
| 
       162 
162 
     | 
    
         | 
| 
       163 
163 
     | 
    
         
             
            #### Usage
         
     | 
| 
       164 
164 
     | 
    
         | 
| 
         @@ -218,7 +218,7 @@ requests. If the remote service has instrumentation that is aware of Rack, 
     | 
|
| 
       218 
218 
     | 
    
         
             
            those spans will be automatically nested with Faraday's spans.
         
     | 
| 
       219 
219 
     | 
    
         | 
| 
       220 
220 
     | 
    
         
             
            The source for this instrumentation is located
         
     | 
| 
       221 
     | 
    
         
            -
            [here](https://github.com/ 
     | 
| 
      
 221 
     | 
    
         
            +
            [here](https://github.com/signalfx/ruby-faraday-tracer).
         
     | 
| 
       222 
222 
     | 
    
         | 
| 
       223 
223 
     | 
    
         
             
            #### Usage
         
     | 
| 
       224 
224 
     | 
    
         | 
    
        data/bin/sfx-rb-trace-bootstrap
    CHANGED
    
    | 
         @@ -4,21 +4,21 @@ require 'ostruct' 
     | 
|
| 
       4 
4 
     | 
    
         
             
            require 'pp'
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            instrumentations = {
         
     | 
| 
       7 
     | 
    
         
            -
              "activerecord" => ["activerecord-opentracing", "~> 0. 
     | 
| 
       8 
     | 
    
         
            -
              "elasticsearch" => ["signalfx-elasticsearch-instrumentation", "~> 0. 
     | 
| 
       9 
     | 
    
         
            -
              "faraday" => ["signalfx-faraday-instrumentation", "~> 0. 
     | 
| 
       10 
     | 
    
         
            -
              "grape" => ["grape-instrumentation", "~> 0. 
     | 
| 
       11 
     | 
    
         
            -
              "mongodb" => ["mongodb-instrumentation", "~> 0.1.1"],
         
     | 
| 
       12 
     | 
    
         
            -
              "mysql2" => ["mysql2-instrumentation", "~> 0. 
     | 
| 
       13 
     | 
    
         
            -
              "nethttp" => ["nethttp-instrumentation", "~> 0. 
     | 
| 
       14 
     | 
    
         
            -
              "pg" => ["pg-instrumentation", "~> 0.1.0"],
         
     | 
| 
       15 
     | 
    
         
            -
              "rack" => [" 
     | 
| 
       16 
     | 
    
         
            -
              "rails" => ["rails-instrumentation", "~> 0. 
     | 
| 
       17 
     | 
    
         
            -
              "redis" => ["redis-instrumentation", "~> 0. 
     | 
| 
       18 
     | 
    
         
            -
              "restclient" => ["restclient-instrumentation", "~> 0.1. 
     | 
| 
       19 
     | 
    
         
            -
              "sequel" => ["sequel-instrumentation", "~> 0.1.0"],
         
     | 
| 
       20 
     | 
    
         
            -
              "sidekiq" => [" 
     | 
| 
       21 
     | 
    
         
            -
              "sinatra" => ["sinatra-instrumentation", "~> 0.1. 
     | 
| 
      
 7 
     | 
    
         
            +
              "activerecord" => ["signalfx-activerecord-opentracing", "~> 0.1.0"],
         
     | 
| 
      
 8 
     | 
    
         
            +
              "elasticsearch" => ["signalfx-elasticsearch-instrumentation", "~> 0.2.0"],
         
     | 
| 
      
 9 
     | 
    
         
            +
              "faraday" => ["signalfx-faraday-instrumentation", "~> 0.2.0"],
         
     | 
| 
      
 10 
     | 
    
         
            +
              "grape" => ["signalfx-grape-instrumentation", "~> 0.1.0"],
         
     | 
| 
      
 11 
     | 
    
         
            +
              "mongodb" => ["signalfx-mongodb-instrumentation", "~> 0.1.1"],
         
     | 
| 
      
 12 
     | 
    
         
            +
              "mysql2" => ["signalfx-mysql2-instrumentation", "~> 0.1.1"],
         
     | 
| 
      
 13 
     | 
    
         
            +
              "nethttp" => ["signalfx-nethttp-instrumentation", "~> 0.2.0"],
         
     | 
| 
      
 14 
     | 
    
         
            +
              "pg" => ["signalfx-pg-instrumentation", "~> 0.1.0"],
         
     | 
| 
      
 15 
     | 
    
         
            +
              "rack" => ["signalfx-rack-tracer", "~> 0.1.0"],
         
     | 
| 
      
 16 
     | 
    
         
            +
              "rails" => ["signalfx-rails-instrumentation", "~> 0.2.0"],
         
     | 
| 
      
 17 
     | 
    
         
            +
              "redis" => ["signalfx-redis-instrumentation", "~> 0.1.0"],
         
     | 
| 
      
 18 
     | 
    
         
            +
              "restclient" => ["signalfx-restclient-instrumentation", "~> 0.1.0"],
         
     | 
| 
      
 19 
     | 
    
         
            +
              "sequel" => ["signalfx-sequel-instrumentation", "~> 0.1.0"],
         
     | 
| 
      
 20 
     | 
    
         
            +
              "sidekiq" => ["signalfx-sidekiq-opentracing", "~> 0.1.0"],
         
     | 
| 
      
 21 
     | 
    
         
            +
              "sinatra" => ["signalfx-sinatra-instrumentation", "~> 0.1.0"]
         
     | 
| 
       22 
22 
     | 
    
         
             
            }
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
            options = OpenStruct.new
         
     | 
    
        data/gem.deps.rb
    CHANGED
    
    | 
         @@ -1,17 +1,17 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            group :instrumentations do
         
     | 
| 
       2 
     | 
    
         
            -
              gem 'activerecord-opentracing', '~> 0. 
     | 
| 
       3 
     | 
    
         
            -
              gem 'grape-instrumentation', "~> 0. 
     | 
| 
       4 
     | 
    
         
            -
              gem 'mongodb-instrumentation', '~> 0.1.1'
         
     | 
| 
       5 
     | 
    
         
            -
              gem 'mysql2-instrumentation', '~> 0. 
     | 
| 
       6 
     | 
    
         
            -
              gem 'nethttp-instrumentation', '~> 0. 
     | 
| 
       7 
     | 
    
         
            -
              gem 'pg-instrumentation',  '~> 0.1.0'
         
     | 
| 
       8 
     | 
    
         
            -
              gem ' 
     | 
| 
       9 
     | 
    
         
            -
              gem 'rails-instrumentation', '~> 0. 
     | 
| 
       10 
     | 
    
         
            -
              gem 'redis-instrumentation', '~> 0. 
     | 
| 
       11 
     | 
    
         
            -
              gem 'restclient-instrumentation', '~> 0.1. 
     | 
| 
       12 
     | 
    
         
            -
              gem 'sequel-instrumentation', '~> 0.1.0'
         
     | 
| 
       13 
     | 
    
         
            -
              gem ' 
     | 
| 
       14 
     | 
    
         
            -
              gem 'signalfx-elasticsearch-instrumentation', '~> 0. 
     | 
| 
       15 
     | 
    
         
            -
              gem 'signalfx-faraday-instrumentation', '~> 0. 
     | 
| 
       16 
     | 
    
         
            -
              gem 'sinatra-instrumentation', '~> 0.1. 
     | 
| 
      
 2 
     | 
    
         
            +
              gem 'signalfx-activerecord-opentracing', '~> 0.1.0'
         
     | 
| 
      
 3 
     | 
    
         
            +
              gem 'signalfx-grape-instrumentation', "~> 0.1.0"
         
     | 
| 
      
 4 
     | 
    
         
            +
              gem 'signalfx-mongodb-instrumentation', '~> 0.1.1'
         
     | 
| 
      
 5 
     | 
    
         
            +
              gem 'signalfx-mysql2-instrumentation', '~> 0.1.1'
         
     | 
| 
      
 6 
     | 
    
         
            +
              gem 'signalfx-nethttp-instrumentation', '~> 0.2.0'
         
     | 
| 
      
 7 
     | 
    
         
            +
              gem 'signalfx-pg-instrumentation',  '~> 0.1.0'
         
     | 
| 
      
 8 
     | 
    
         
            +
              gem 'signalfx-rack-tracer', '~> 0.1.0'
         
     | 
| 
      
 9 
     | 
    
         
            +
              gem 'signalfx-rails-instrumentation', '~> 0.2.0'
         
     | 
| 
      
 10 
     | 
    
         
            +
              gem 'signalfx-redis-instrumentation', '~> 0.1.0'
         
     | 
| 
      
 11 
     | 
    
         
            +
              gem 'signalfx-restclient-instrumentation', '~> 0.1.0'
         
     | 
| 
      
 12 
     | 
    
         
            +
              gem 'signalfx-sequel-instrumentation', '~> 0.1.0'
         
     | 
| 
      
 13 
     | 
    
         
            +
              gem 'signalfx-sidekiq-opentracing', '~> 0.1.0'
         
     | 
| 
      
 14 
     | 
    
         
            +
              gem 'signalfx-elasticsearch-instrumentation', '~> 0.2.0'
         
     | 
| 
      
 15 
     | 
    
         
            +
              gem 'signalfx-faraday-instrumentation', '~> 0.2.0'
         
     | 
| 
      
 16 
     | 
    
         
            +
              gem 'signalfx-sinatra-instrumentation', '~> 0.1.0'
         
     | 
| 
       17 
17 
     | 
    
         
             
            end
         
     | 
| 
         @@ -4,24 +4,15 @@ module SignalFx 
     | 
|
| 
       4 
4 
     | 
    
         
             
              module Tracing
         
     | 
| 
       5 
5 
     | 
    
         
             
                module Span
         
     | 
| 
       6 
6 
     | 
    
         
             
                  def record_exception(exception, record_error=true) 
         
     | 
| 
       7 
     | 
    
         
            -
                    set_tag( 
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
                     
     | 
| 
       10 
     | 
    
         
            -
                      :event => 'error',
         
     | 
| 
       11 
     | 
    
         
            -
                      :'error.kind' => exception.class.to_s,
         
     | 
| 
       12 
     | 
    
         
            -
                      :'error.object' => exception,
         
     | 
| 
       13 
     | 
    
         
            -
                      :message => exception.message,
         
     | 
| 
       14 
     | 
    
         
            -
                    }
         
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
      
 7 
     | 
    
         
            +
                    set_tag(:error, true) if record_error
         
     | 
| 
      
 8 
     | 
    
         
            +
                    set_tag(:'sfx.error.kind', exception.class.to_s) 
         
     | 
| 
      
 9 
     | 
    
         
            +
                    set_tag(:'sfx.error.message', exception.message)
         
     | 
| 
       16 
10 
     | 
    
         
             
                    if not exception.backtrace.nil?
         
     | 
| 
       17 
     | 
    
         
            -
                       
     | 
| 
      
 11 
     | 
    
         
            +
                      set_tag(:'sfx.error.stack', exception.backtrace.join('\n'))
         
     | 
| 
       18 
12 
     | 
    
         
             
                    end
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
                    log_kv(**fields)
         
     | 
| 
       21 
13 
     | 
    
         
             
                  end
         
     | 
| 
       22 
14 
     | 
    
         
             
                end
         
     | 
| 
       23 
15 
     | 
    
         
             
              end
         
     | 
| 
       24 
16 
     | 
    
         
             
            end
         
     | 
| 
       25 
17 
     | 
    
         | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
            Jaeger::Span.class_eval { include SignalFx::Tracing::Span }
         
     | 
| 
      
 18 
     | 
    
         
            +
            Jaeger::Span.class_eval { prepend SignalFx::Tracing::Span }
         
     | 
    
        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: 2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.1.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - SignalFx, Inc.
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2020-12- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-12-14 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     |