oboe 2.7.2.fuchs2 → 2.7.2.2
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 +7 -0
 - data/lib/oboe.rb +3 -4
 - data/lib/oboe/api/layerinit.rb +64 -1
 - data/lib/oboe/base.rb +3 -7
 - data/lib/oboe/util.rb +0 -76
 - data/lib/oboe/version.rb +1 -1
 - metadata +51 -75
 - data/lib/oboe/support.rb +0 -94
 
    
        checksums.yaml
    ADDED
    
    | 
         @@ -0,0 +1,7 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            SHA1:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 5fddd1f71997ecae38b7f1888f90c6c59ff69a3c
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4e54002f173056d3058f1f3c48d59369ed1482c5
         
     | 
| 
      
 5 
     | 
    
         
            +
            SHA512:
         
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: d043f5e6b8604946a71aaa2d10ec05f48f24390c10935614f4a33c3771a0fa7fb73e193f8ad2f87eb4802de5c113200bcf4783ea1af4f1f0f1cb8a5620e0faa9
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: a14372dc589567fe7f3781f7f51d0ea64dbd0b5dd06ef3408f22c41118cca44ff2c26464baedc6b85183f6279e761cec55e9abb333308686ded122a910e7d53a
         
     | 
    
        data/lib/oboe.rb
    CHANGED
    
    | 
         @@ -7,7 +7,6 @@ begin 
     | 
|
| 
       7 
7 
     | 
    
         
             
              require 'oboe/logger'
         
     | 
| 
       8 
8 
     | 
    
         
             
              require 'oboe/util'
         
     | 
| 
       9 
9 
     | 
    
         
             
              require 'oboe/xtrace'
         
     | 
| 
       10 
     | 
    
         
            -
              require 'oboe/support'
         
     | 
| 
       11 
10 
     | 
    
         | 
| 
       12 
11 
     | 
    
         
             
              # If OboeHeroku is already defined then we are in a PaaS environment
         
     | 
| 
       13 
12 
     | 
    
         
             
              # with an alternate metal (see the oboe-heroku gem)
         
     | 
| 
         @@ -19,8 +18,8 @@ begin 
     | 
|
| 
       19 
18 
     | 
    
         
             
                    require '/usr/local/tracelytics/tracelyticsagent.jar'
         
     | 
| 
       20 
19 
     | 
    
         
             
                    require 'joboe_metal'
         
     | 
| 
       21 
20 
     | 
    
         
             
                  else
         
     | 
| 
       22 
     | 
    
         
            -
                    require  
     | 
| 
       23 
     | 
    
         
            -
                    require  
     | 
| 
      
 21 
     | 
    
         
            +
                    require 'oboe_metal.so'
         
     | 
| 
      
 22 
     | 
    
         
            +
                    require 'oboe_metal'
         
     | 
| 
       24 
23 
     | 
    
         
             
                  end
         
     | 
| 
       25 
24 
     | 
    
         
             
                rescue LoadError
         
     | 
| 
       26 
25 
     | 
    
         
             
                  Oboe.loaded = false
         
     | 
| 
         @@ -52,6 +51,6 @@ begin 
     | 
|
| 
       52 
51 
     | 
    
         
             
              # it will load all of the Ruby instrumentation
         
     | 
| 
       53 
52 
     | 
    
         
             
              require 'oboe/ruby'
         
     | 
| 
       54 
53 
     | 
    
         
             
            rescue => e
         
     | 
| 
       55 
     | 
    
         
            -
              $stderr.puts  
     | 
| 
      
 54 
     | 
    
         
            +
              $stderr.puts '[oboe/error] Problem loading: #{e.inspect}'
         
     | 
| 
       56 
55 
     | 
    
         
             
              $stderr.puts e.backtrace
         
     | 
| 
       57 
56 
     | 
    
         
             
            end
         
     | 
    
        data/lib/oboe/api/layerinit.rb
    CHANGED
    
    | 
         @@ -17,7 +17,70 @@ module Oboe 
     | 
|
| 
       17 
17 
     | 
    
         
             
                    # Don't send __Init if the c-extension hasn't loaded
         
     | 
| 
       18 
18 
     | 
    
         
             
                    return unless Oboe.loaded
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
                    platform_info =  
     | 
| 
      
 20 
     | 
    
         
            +
                    platform_info = { '__Init' => 1 }
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
                    begin
         
     | 
| 
      
 23 
     | 
    
         
            +
                      platform_info['Force']                   = true
         
     | 
| 
      
 24 
     | 
    
         
            +
                      platform_info['Ruby.Platform.Version']   = RUBY_PLATFORM
         
     | 
| 
      
 25 
     | 
    
         
            +
                      platform_info['Ruby.Version']            = RUBY_VERSION
         
     | 
| 
      
 26 
     | 
    
         
            +
                      platform_info['Ruby.Oboe.Version']       = ::Oboe::Version::STRING
         
     | 
| 
      
 27 
     | 
    
         
            +
                      platform_info['RubyHeroku.Oboe.Version'] = ::OboeHeroku::Version::STRING if defined?(::OboeHeroku)
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
                      # Report the framework in use
         
     | 
| 
      
 30 
     | 
    
         
            +
                      platform_info['Ruby.Rails.Version'] = "Rails-#{::Rails.version}"  if defined?(::Rails)
         
     | 
| 
      
 31 
     | 
    
         
            +
                      platform_info['Ruby.Grape.Version'] = "Grape-#{::Grape::VERSION}" if defined?(::Grape)
         
     | 
| 
      
 32 
     | 
    
         
            +
                      platform_info['Ruby.Cramp.Version'] = "Cramp-#{::Cramp::VERSION}" if defined?(::Cramp)
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
                      if defined?(::Padrino)
         
     | 
| 
      
 35 
     | 
    
         
            +
                        platform_info['Ruby.Padrino.Version'] = "Padrino-#{::Padrino::VERSION}"
         
     | 
| 
      
 36 
     | 
    
         
            +
                      elsif defined?(::Sinatra)
         
     | 
| 
      
 37 
     | 
    
         
            +
                        platform_info['Ruby.Sinatra.Version'] = "Sinatra-#{::Sinatra::VERSION}"
         
     | 
| 
      
 38 
     | 
    
         
            +
                      end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
                      # Report the instrumented libraries
         
     | 
| 
      
 41 
     | 
    
         
            +
                      platform_info['Ruby.Cassandra.Version'] = "Cassandra-#{::Cassandra.VERSION}" if defined?(::Cassandra)
         
     | 
| 
      
 42 
     | 
    
         
            +
                      platform_info['Ruby.Dalli.Version']     = "Dalli-#{::Dalli::VERSION}"        if defined?(::Dalli)
         
     | 
| 
      
 43 
     | 
    
         
            +
                      platform_info['Ruby.MemCache.Version']  = "MemCache-#{::MemCache::VERSION}"  if defined?(::MemCache)
         
     | 
| 
      
 44 
     | 
    
         
            +
                      platform_info['Ruby.Moped.Version']     = "Moped-#{::Moped::VERSION}"        if defined?(::Moped)
         
     | 
| 
      
 45 
     | 
    
         
            +
                      platform_info['Ruby.Redis.Version']     = "Redis-#{::Redis::VERSION}"        if defined?(::Redis)
         
     | 
| 
      
 46 
     | 
    
         
            +
                      platform_info['Ruby.Resque.Version']    = "Resque-#{::Resque::VERSION}"      if defined?(::Resque)
         
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
                      # Special case since the Mongo 1.x driver doesn't embed the version number in the gem directly
         
     | 
| 
      
 49 
     | 
    
         
            +
                      if ::Gem.loaded_specs.key?('mongo')
         
     | 
| 
      
 50 
     | 
    
         
            +
                        platform_info['Ruby.Mongo.Version']     = "Mongo-#{::Gem.loaded_specs['mongo'].version}"
         
     | 
| 
      
 51 
     | 
    
         
            +
                      end
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
                      # Report the server in use (if possible)
         
     | 
| 
      
 54 
     | 
    
         
            +
                      if defined?(::Unicorn)
         
     | 
| 
      
 55 
     | 
    
         
            +
                        platform_info['Ruby.AppContainer.Version'] = "Unicorn-#{::Unicorn::Const::UNICORN_VERSION}"
         
     | 
| 
      
 56 
     | 
    
         
            +
                      elsif defined?(::Puma)
         
     | 
| 
      
 57 
     | 
    
         
            +
                        platform_info['Ruby.AppContainer.Version'] = "Puma-#{::Puma::Const::PUMA_VERSION} (#{::Puma::Const::CODE_NAME})"
         
     | 
| 
      
 58 
     | 
    
         
            +
                      elsif defined?(::PhusionPassenger)
         
     | 
| 
      
 59 
     | 
    
         
            +
                        platform_info['Ruby.AppContainer.Version'] = "#{::PhusionPassenger::PACKAGE_NAME}-#{::PhusionPassenger::VERSION_STRING}"
         
     | 
| 
      
 60 
     | 
    
         
            +
                      elsif defined?(::Thin)
         
     | 
| 
      
 61 
     | 
    
         
            +
                        platform_info['Ruby.AppContainer.Version'] = "Thin-#{::Thin::VERSION::STRING} (#{::Thin::VERSION::CODENAME})"
         
     | 
| 
      
 62 
     | 
    
         
            +
                      elsif defined?(::Mongrel)
         
     | 
| 
      
 63 
     | 
    
         
            +
                        platform_info['Ruby.AppContainer.Version'] = "Mongrel-#{::Mongrel::Const::MONGREL_VERSION}"
         
     | 
| 
      
 64 
     | 
    
         
            +
                      elsif defined?(::Mongrel2)
         
     | 
| 
      
 65 
     | 
    
         
            +
                        platform_info['Ruby.AppContainer.Version'] = "Mongrel2-#{::Mongrel2::VERSION}"
         
     | 
| 
      
 66 
     | 
    
         
            +
                      elsif defined?(::Trinidad)
         
     | 
| 
      
 67 
     | 
    
         
            +
                        platform_info['Ruby.AppContainer.Version'] = "Trinidad-#{::Trinidad::VERSION}"
         
     | 
| 
      
 68 
     | 
    
         
            +
                      elsif defined?(::WEBrick)
         
     | 
| 
      
 69 
     | 
    
         
            +
                        platform_info['Ruby.AppContainer.Version'] = "WEBrick-#{::WEBrick::VERSION}"
         
     | 
| 
      
 70 
     | 
    
         
            +
                      else
         
     | 
| 
      
 71 
     | 
    
         
            +
                        platform_info['Ruby.AppContainer.Version'] = File.basename($PROGRAM_NAME)
         
     | 
| 
      
 72 
     | 
    
         
            +
                      end
         
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
                    rescue StandardError, ScriptError => e
         
     | 
| 
      
 75 
     | 
    
         
            +
                      # Also rescue ScriptError (aka SyntaxError) in case one of the expected
         
     | 
| 
      
 76 
     | 
    
         
            +
                      # version defines don't exist
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
      
 78 
     | 
    
         
            +
                      platform_info['Error'] = "Error in layerinit: #{e.message}"
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
                      Oboe.logger.debug "Error in layerinit: #{e.message}"
         
     | 
| 
      
 81 
     | 
    
         
            +
                      Oboe.logger.debug e.backtrace
         
     | 
| 
      
 82 
     | 
    
         
            +
                    end
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
       21 
84 
     | 
    
         
             
                    start_trace(layer, nil, platform_info.merge('Force' => true)) {}
         
     | 
| 
       22 
85 
     | 
    
         
             
                  end
         
     | 
| 
       23 
86 
     | 
    
         | 
    
        data/lib/oboe/base.rb
    CHANGED
    
    | 
         @@ -35,12 +35,8 @@ module OboeBase 
     | 
|
| 
       35 
35 
     | 
    
         
             
              attr_accessor :sample_rate
         
     | 
| 
       36 
36 
     | 
    
         
             
              thread_local :layer_op
         
     | 
| 
       37 
37 
     | 
    
         | 
| 
       38 
     | 
    
         
            -
              def self.included( 
     | 
| 
       39 
     | 
    
         
            -
                 
     | 
| 
       40 
     | 
    
         
            -
              end
         
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
              def self.extended(cls)
         
     | 
| 
       43 
     | 
    
         
            -
                cls.loaded = true
         
     | 
| 
      
 38 
     | 
    
         
            +
              def self.included(_)
         
     | 
| 
      
 39 
     | 
    
         
            +
                self.loaded = true
         
     | 
| 
       44 
40 
     | 
    
         
             
              end
         
     | 
| 
       45 
41 
     | 
    
         | 
| 
       46 
42 
     | 
    
         
             
              def tracing_layer_op?(operation)
         
     | 
| 
         @@ -99,7 +95,7 @@ module OboeBase 
     | 
|
| 
       99 
95 
     | 
    
         
             
              end
         
     | 
| 
       100 
96 
     | 
    
         | 
| 
       101 
97 
     | 
    
         
             
              def heroku?
         
     | 
| 
       102 
     | 
    
         
            -
                 
     | 
| 
      
 98 
     | 
    
         
            +
                false
         
     | 
| 
       103 
99 
     | 
    
         
             
              end
         
     | 
| 
       104 
100 
     | 
    
         | 
| 
       105 
101 
     | 
    
         
             
              ##
         
     | 
    
        data/lib/oboe/util.rb
    CHANGED
    
    | 
         @@ -120,82 +120,6 @@ module Oboe 
     | 
|
| 
       120 
120 
     | 
    
         
             
                      x.to_s
         
     | 
| 
       121 
121 
     | 
    
         
             
                    end
         
     | 
| 
       122 
122 
     | 
    
         
             
                  end
         
     | 
| 
       123 
     | 
    
         
            -
             
     | 
| 
       124 
     | 
    
         
            -
                  ##
         
     | 
| 
       125 
     | 
    
         
            -
                  #  build_report
         
     | 
| 
       126 
     | 
    
         
            -
                  #
         
     | 
| 
       127 
     | 
    
         
            -
                  # Internal: Build a hash of KVs that reports on the status of the
         
     | 
| 
       128 
     | 
    
         
            -
                  # running environment.
         
     | 
| 
       129 
     | 
    
         
            -
                  def build_report
         
     | 
| 
       130 
     | 
    
         
            -
                    platform_info = { '__Init' => 1 }
         
     | 
| 
       131 
     | 
    
         
            -
             
     | 
| 
       132 
     | 
    
         
            -
                    begin
         
     | 
| 
       133 
     | 
    
         
            -
                      platform_info['Force']                   = true
         
     | 
| 
       134 
     | 
    
         
            -
                      platform_info['Ruby.Platform.Version']   = RUBY_PLATFORM
         
     | 
| 
       135 
     | 
    
         
            -
                      platform_info['Ruby.Version']            = RUBY_VERSION
         
     | 
| 
       136 
     | 
    
         
            -
                      platform_info['Ruby.Oboe.Version']       = ::Oboe::Version::STRING
         
     | 
| 
       137 
     | 
    
         
            -
                      platform_info['RubyHeroku.Oboe.Version'] = ::OboeHeroku::Version::STRING if defined?(::OboeHeroku)
         
     | 
| 
       138 
     | 
    
         
            -
             
     | 
| 
       139 
     | 
    
         
            -
                      # Report the framework in use
         
     | 
| 
       140 
     | 
    
         
            -
                      if defined?(::RailsLts)
         
     | 
| 
       141 
     | 
    
         
            -
                        platform_info['Ruby.RailsLts.Version'] = "RailsLts-#{::RailsLts::VERSION}"
         
     | 
| 
       142 
     | 
    
         
            -
                      elsif defined?(::Rails)
         
     | 
| 
       143 
     | 
    
         
            -
                        platform_info['Ruby.Rails.Version']    = "Rails-#{::Rails.version}"
         
     | 
| 
       144 
     | 
    
         
            -
                      end
         
     | 
| 
       145 
     | 
    
         
            -
                      platform_info['Ruby.Grape.Version']    = "Grape-#{::Grape::VERSION}" if defined?(::Grape)
         
     | 
| 
       146 
     | 
    
         
            -
                      platform_info['Ruby.Cramp.Version']    = "Cramp-#{::Cramp::VERSION}" if defined?(::Cramp)
         
     | 
| 
       147 
     | 
    
         
            -
             
     | 
| 
       148 
     | 
    
         
            -
                      if defined?(::Padrino)
         
     | 
| 
       149 
     | 
    
         
            -
                        platform_info['Ruby.Padrino.Version'] = "Padrino-#{::Padrino::VERSION}"
         
     | 
| 
       150 
     | 
    
         
            -
                      elsif defined?(::Sinatra)
         
     | 
| 
       151 
     | 
    
         
            -
                        platform_info['Ruby.Sinatra.Version'] = "Sinatra-#{::Sinatra::VERSION}"
         
     | 
| 
       152 
     | 
    
         
            -
                      end
         
     | 
| 
       153 
     | 
    
         
            -
             
     | 
| 
       154 
     | 
    
         
            -
                      # Report the instrumented libraries
         
     | 
| 
       155 
     | 
    
         
            -
                      platform_info['Ruby.Cassandra.Version'] = "Cassandra-#{::Cassandra.VERSION}" if defined?(::Cassandra)
         
     | 
| 
       156 
     | 
    
         
            -
                      platform_info['Ruby.Dalli.Version']     = "Dalli-#{::Dalli::VERSION}"        if defined?(::Dalli)
         
     | 
| 
       157 
     | 
    
         
            -
                      platform_info['Ruby.MemCache.Version']  = "MemCache-#{::MemCache::VERSION}"  if defined?(::MemCache)
         
     | 
| 
       158 
     | 
    
         
            -
                      platform_info['Ruby.Moped.Version']     = "Moped-#{::Moped::VERSION}"        if defined?(::Moped)
         
     | 
| 
       159 
     | 
    
         
            -
                      platform_info['Ruby.Redis.Version']     = "Redis-#{::Redis::VERSION}"        if defined?(::Redis)
         
     | 
| 
       160 
     | 
    
         
            -
                      platform_info['Ruby.Resque.Version']    = "Resque-#{::Resque::VERSION}"      if defined?(::Resque)
         
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
     | 
    
         
            -
                      # Special case since the Mongo 1.x driver doesn't embed the version number in the gem directly
         
     | 
| 
       163 
     | 
    
         
            -
                      if ::Gem.loaded_specs.key?('mongo')
         
     | 
| 
       164 
     | 
    
         
            -
                        platform_info['Ruby.Mongo.Version']     = "Mongo-#{::Gem.loaded_specs['mongo'].version}"
         
     | 
| 
       165 
     | 
    
         
            -
                      end
         
     | 
| 
       166 
     | 
    
         
            -
             
     | 
| 
       167 
     | 
    
         
            -
                      # Report the server in use (if possible)
         
     | 
| 
       168 
     | 
    
         
            -
                      if defined?(::Unicorn)
         
     | 
| 
       169 
     | 
    
         
            -
                        platform_info['Ruby.AppContainer.Version'] = "Unicorn-#{::Unicorn::Const::UNICORN_VERSION}"
         
     | 
| 
       170 
     | 
    
         
            -
                      elsif defined?(::Puma)
         
     | 
| 
       171 
     | 
    
         
            -
                        platform_info['Ruby.AppContainer.Version'] = "Puma-#{::Puma::Const::PUMA_VERSION} (#{::Puma::Const::CODE_NAME})"
         
     | 
| 
       172 
     | 
    
         
            -
                      elsif defined?(::PhusionPassenger)
         
     | 
| 
       173 
     | 
    
         
            -
                        platform_info['Ruby.AppContainer.Version'] = "#{::PhusionPassenger::PACKAGE_NAME}-#{::PhusionPassenger::VERSION_STRING}"
         
     | 
| 
       174 
     | 
    
         
            -
                      elsif defined?(::Thin)
         
     | 
| 
       175 
     | 
    
         
            -
                        platform_info['Ruby.AppContainer.Version'] = "Thin-#{::Thin::VERSION::STRING} (#{::Thin::VERSION::CODENAME})"
         
     | 
| 
       176 
     | 
    
         
            -
                      elsif defined?(::Mongrel)
         
     | 
| 
       177 
     | 
    
         
            -
                        platform_info['Ruby.AppContainer.Version'] = "Mongrel-#{::Mongrel::Const::MONGREL_VERSION}"
         
     | 
| 
       178 
     | 
    
         
            -
                      elsif defined?(::Mongrel2)
         
     | 
| 
       179 
     | 
    
         
            -
                        platform_info['Ruby.AppContainer.Version'] = "Mongrel2-#{::Mongrel2::VERSION}"
         
     | 
| 
       180 
     | 
    
         
            -
                      elsif defined?(::Trinidad)
         
     | 
| 
       181 
     | 
    
         
            -
                        platform_info['Ruby.AppContainer.Version'] = "Trinidad-#{::Trinidad::VERSION}"
         
     | 
| 
       182 
     | 
    
         
            -
                      elsif defined?(::WEBrick)
         
     | 
| 
       183 
     | 
    
         
            -
                        platform_info['Ruby.AppContainer.Version'] = "WEBrick-#{::WEBrick::VERSION}"
         
     | 
| 
       184 
     | 
    
         
            -
                      else
         
     | 
| 
       185 
     | 
    
         
            -
                        platform_info['Ruby.AppContainer.Version'] = File.basename($PROGRAM_NAME)
         
     | 
| 
       186 
     | 
    
         
            -
                      end
         
     | 
| 
       187 
     | 
    
         
            -
             
     | 
| 
       188 
     | 
    
         
            -
                    rescue StandardError, ScriptError => e
         
     | 
| 
       189 
     | 
    
         
            -
                      # Also rescue ScriptError (aka SyntaxError) in case one of the expected
         
     | 
| 
       190 
     | 
    
         
            -
                      # version defines don't exist
         
     | 
| 
       191 
     | 
    
         
            -
             
     | 
| 
       192 
     | 
    
         
            -
                      platform_info['Error'] = "Error in build_report: #{e.message}"
         
     | 
| 
       193 
     | 
    
         
            -
             
     | 
| 
       194 
     | 
    
         
            -
                      Oboe.logger.debug "Error in build_report: #{e.message}"
         
     | 
| 
       195 
     | 
    
         
            -
                      Oboe.logger.debug e.backtrace
         
     | 
| 
       196 
     | 
    
         
            -
                    end
         
     | 
| 
       197 
     | 
    
         
            -
                    platform_info
         
     | 
| 
       198 
     | 
    
         
            -
                  end
         
     | 
| 
       199 
123 
     | 
    
         
             
                end
         
     | 
| 
       200 
124 
     | 
    
         
             
              end
         
     | 
| 
       201 
125 
     | 
    
         
             
            end
         
     | 
    
        data/lib/oboe/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,66 +1,56 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            --- !ruby/object:Gem::Specification 
     | 
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: oboe
         
     | 
| 
       3 
     | 
    
         
            -
            version: !ruby/object:Gem::Version 
     | 
| 
       4 
     | 
    
         
            -
               
     | 
| 
       5 
     | 
    
         
            -
              prerelease: 6
         
     | 
| 
       6 
     | 
    
         
            -
              segments: 
         
     | 
| 
       7 
     | 
    
         
            -
              - 2
         
     | 
| 
       8 
     | 
    
         
            -
              - 7
         
     | 
| 
       9 
     | 
    
         
            -
              - 2
         
     | 
| 
       10 
     | 
    
         
            -
              - fuchs
         
     | 
| 
       11 
     | 
    
         
            -
              - 2
         
     | 
| 
       12 
     | 
    
         
            -
              version: 2.7.2.fuchs2
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.7.2.2
         
     | 
| 
       13 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       14 
     | 
    
         
            -
            authors: 
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
       15 
7 
     | 
    
         
             
            - Peter Giacomo Lombardo
         
     | 
| 
       16 
8 
     | 
    
         
             
            - Spiros Eliopoulos
         
     | 
| 
       17 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       18 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       19 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
            dependencies: 
         
     | 
| 
       24 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2014-09-26 00:00:00.000000000 Z
         
     | 
| 
      
 13 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 14 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
       25 
15 
     | 
    
         
             
              name: json
         
     | 
| 
       26 
     | 
    
         
            -
               
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
                none: false
         
     | 
| 
       29 
     | 
    
         
            -
                requirements: 
         
     | 
| 
      
 16 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 17 
     | 
    
         
            +
                requirements:
         
     | 
| 
       30 
18 
     | 
    
         
             
                - - ">="
         
     | 
| 
       31 
     | 
    
         
            -
                  - !ruby/object:Gem::Version 
     | 
| 
       32 
     | 
    
         
            -
                     
     | 
| 
       33 
     | 
    
         
            -
                    segments: 
         
     | 
| 
       34 
     | 
    
         
            -
                    - 0
         
     | 
| 
       35 
     | 
    
         
            -
                    version: "0"
         
     | 
| 
      
 19 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 20 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       36 
21 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       37 
     | 
    
         
            -
              version_requirements: *id001
         
     | 
| 
       38 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       39 
     | 
    
         
            -
              name: rake
         
     | 
| 
       40 
22 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       41 
     | 
    
         
            -
               
     | 
| 
       42 
     | 
    
         
            -
                 
     | 
| 
       43 
     | 
    
         
            -
                 
     | 
| 
      
 23 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 24 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 25 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 26 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 27 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 28 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 29 
     | 
    
         
            +
              name: rake
         
     | 
| 
      
 30 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 31 
     | 
    
         
            +
                requirements:
         
     | 
| 
       44 
32 
     | 
    
         
             
                - - ">="
         
     | 
| 
       45 
     | 
    
         
            -
                  - !ruby/object:Gem::Version 
     | 
| 
       46 
     | 
    
         
            -
                     
     | 
| 
       47 
     | 
    
         
            -
                    segments: 
         
     | 
| 
       48 
     | 
    
         
            -
                    - 0
         
     | 
| 
       49 
     | 
    
         
            -
                    version: "0"
         
     | 
| 
      
 33 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 34 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       50 
35 
     | 
    
         
             
              type: :development
         
     | 
| 
       51 
     | 
    
         
            -
               
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
      
 36 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 37 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 38 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 39 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 40 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 41 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 42 
     | 
    
         
            +
            description: The oboe gem provides TraceView instrumentation for MRI Ruby, JRuby and
         
     | 
| 
      
 43 
     | 
    
         
            +
              related frameworks.
         
     | 
| 
       53 
44 
     | 
    
         
             
            email: traceviewsupport@appneta.com
         
     | 
| 
       54 
45 
     | 
    
         
             
            executables: []
         
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
            extensions: 
         
     | 
| 
      
 46 
     | 
    
         
            +
            extensions:
         
     | 
| 
       57 
47 
     | 
    
         
             
            - ext/oboe_metal/extconf.rb
         
     | 
| 
       58 
     | 
    
         
            -
            extra_rdoc_files: 
     | 
| 
      
 48 
     | 
    
         
            +
            extra_rdoc_files:
         
     | 
| 
       59 
49 
     | 
    
         
             
            - LICENSE
         
     | 
| 
       60 
     | 
    
         
            -
            files: 
     | 
| 
       61 
     | 
    
         
            -
            - .gitignore
         
     | 
| 
       62 
     | 
    
         
            -
            - .rubocop.yml
         
     | 
| 
       63 
     | 
    
         
            -
            - .travis.yml
         
     | 
| 
      
 50 
     | 
    
         
            +
            files:
         
     | 
| 
      
 51 
     | 
    
         
            +
            - ".gitignore"
         
     | 
| 
      
 52 
     | 
    
         
            +
            - ".rubocop.yml"
         
     | 
| 
      
 53 
     | 
    
         
            +
            - ".travis.yml"
         
     | 
| 
       64 
54 
     | 
    
         
             
            - Appraisals
         
     | 
| 
       65 
55 
     | 
    
         
             
            - CHANGELOG.md
         
     | 
| 
       66 
56 
     | 
    
         
             
            - Gemfile
         
     | 
| 
         @@ -126,7 +116,6 @@ files: 
     | 
|
| 
       126 
116 
     | 
    
         
             
            - lib/oboe/logger.rb
         
     | 
| 
       127 
117 
     | 
    
         
             
            - lib/oboe/method_profiling.rb
         
     | 
| 
       128 
118 
     | 
    
         
             
            - lib/oboe/ruby.rb
         
     | 
| 
       129 
     | 
    
         
            -
            - lib/oboe/support.rb
         
     | 
| 
       130 
119 
     | 
    
         
             
            - lib/oboe/thread_local.rb
         
     | 
| 
       131 
120 
     | 
    
         
             
            - lib/oboe/util.rb
         
     | 
| 
       132 
121 
     | 
    
         
             
            - lib/oboe/version.rb
         
     | 
| 
         @@ -165,45 +154,31 @@ files: 
     | 
|
| 
       165 
154 
     | 
    
         
             
            - test/support/config_test.rb
         
     | 
| 
       166 
155 
     | 
    
         
             
            - test/support/liboboe_settings_test.rb
         
     | 
| 
       167 
156 
     | 
    
         
             
            - test/support/xtrace_test.rb
         
     | 
| 
       168 
     | 
    
         
            -
            has_rdoc: true
         
     | 
| 
       169 
157 
     | 
    
         
             
            homepage: http://www.appneta.com/products/traceview/
         
     | 
| 
       170 
     | 
    
         
            -
            licenses: 
     | 
| 
      
 158 
     | 
    
         
            +
            licenses:
         
     | 
| 
       171 
159 
     | 
    
         
             
            - AppNeta Open License, Version 1.0
         
     | 
| 
      
 160 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
       172 
161 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       173 
162 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       174 
     | 
    
         
            -
             
     | 
| 
       175 
     | 
    
         
            -
            require_paths: 
         
     | 
| 
      
 163 
     | 
    
         
            +
            require_paths:
         
     | 
| 
       176 
164 
     | 
    
         
             
            - lib
         
     | 
| 
       177 
     | 
    
         
            -
            required_ruby_version: !ruby/object:Gem::Requirement 
     | 
| 
       178 
     | 
    
         
            -
               
     | 
| 
       179 
     | 
    
         
            -
              requirements: 
         
     | 
| 
      
 165 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 166 
     | 
    
         
            +
              requirements:
         
     | 
| 
       180 
167 
     | 
    
         
             
              - - ">="
         
     | 
| 
       181 
     | 
    
         
            -
                - !ruby/object:Gem::Version 
     | 
| 
       182 
     | 
    
         
            -
                  hash: 59
         
     | 
| 
       183 
     | 
    
         
            -
                  segments: 
         
     | 
| 
       184 
     | 
    
         
            -
                  - 1
         
     | 
| 
       185 
     | 
    
         
            -
                  - 8
         
     | 
| 
       186 
     | 
    
         
            -
                  - 6
         
     | 
| 
      
 168 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
       187 
169 
     | 
    
         
             
                  version: 1.8.6
         
     | 
| 
       188 
     | 
    
         
            -
            required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
| 
       189 
     | 
    
         
            -
               
     | 
| 
       190 
     | 
    
         
            -
               
     | 
| 
       191 
     | 
    
         
            -
             
     | 
| 
       192 
     | 
    
         
            -
             
     | 
| 
       193 
     | 
    
         
            -
                  hash: 25
         
     | 
| 
       194 
     | 
    
         
            -
                  segments: 
         
     | 
| 
       195 
     | 
    
         
            -
                  - 1
         
     | 
| 
       196 
     | 
    
         
            -
                  - 3
         
     | 
| 
       197 
     | 
    
         
            -
                  - 1
         
     | 
| 
       198 
     | 
    
         
            -
                  version: 1.3.1
         
     | 
| 
      
 170 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 171 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 172 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 173 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 174 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       199 
175 
     | 
    
         
             
            requirements: []
         
     | 
| 
       200 
     | 
    
         
            -
             
     | 
| 
       201 
176 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       202 
     | 
    
         
            -
            rubygems_version:  
     | 
| 
      
 177 
     | 
    
         
            +
            rubygems_version: 2.2.2
         
     | 
| 
       203 
178 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       204 
     | 
    
         
            -
            specification_version:  
     | 
| 
      
 179 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
       205 
180 
     | 
    
         
             
            summary: AppNeta TraceView performance instrumentation gem for Ruby
         
     | 
| 
       206 
     | 
    
         
            -
            test_files: 
     | 
| 
      
 181 
     | 
    
         
            +
            test_files:
         
     | 
| 
       207 
182 
     | 
    
         
             
            - test/frameworks/grape_test.rb
         
     | 
| 
       208 
183 
     | 
    
         
             
            - test/frameworks/padrino_test.rb
         
     | 
| 
       209 
184 
     | 
    
         
             
            - test/frameworks/sinatra_test.rb
         
     | 
| 
         @@ -233,3 +208,4 @@ test_files: 
     | 
|
| 
       233 
208 
     | 
    
         
             
            - test/support/liboboe_settings_test.rb
         
     | 
| 
       234 
209 
     | 
    
         
             
            - test/support/config_test.rb
         
     | 
| 
       235 
210 
     | 
    
         
             
            - test/support/xtrace_test.rb
         
     | 
| 
      
 211 
     | 
    
         
            +
            has_rdoc: 
         
     | 
    
        data/lib/oboe/support.rb
    DELETED
    
    | 
         @@ -1,94 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Copyright (c) 2014 AppNeta, Inc.
         
     | 
| 
       2 
     | 
    
         
            -
            # All rights reserved.
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            module Oboe
         
     | 
| 
       5 
     | 
    
         
            -
              ##
         
     | 
| 
       6 
     | 
    
         
            -
              # This module is used to debug problematic setups and/or environments.
         
     | 
| 
       7 
     | 
    
         
            -
              # Depending on the environment, output may be to stdout or the framework
         
     | 
| 
       8 
     | 
    
         
            -
              # log file (e.g. log/production.log)
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
              ##
         
     | 
| 
       11 
     | 
    
         
            -
              # yesno
         
     | 
| 
       12 
     | 
    
         
            -
              #
         
     | 
| 
       13 
     | 
    
         
            -
              # Utility method to translate value/nil to "yes"/"no" strings
         
     | 
| 
       14 
     | 
    
         
            -
              def self.yesno(x)
         
     | 
| 
       15 
     | 
    
         
            -
                x ? "yes" : "no"
         
     | 
| 
       16 
     | 
    
         
            -
              end
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
              def self.support_report
         
     | 
| 
       19 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       20 
     | 
    
         
            -
                Oboe.logger.warn "* BEGIN TraceView Support Report"
         
     | 
| 
       21 
     | 
    
         
            -
                Oboe.logger.warn "*   Please email the output of this report to traceviewsupport@appneta.com"
         
     | 
| 
       22 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       23 
     | 
    
         
            -
                Oboe.logger.warn "Ruby: #{RUBY_DESCRIPTION}"
         
     | 
| 
       24 
     | 
    
         
            -
                Oboe.logger.warn "$0: #{$0}"
         
     | 
| 
       25 
     | 
    
         
            -
                Oboe.logger.warn "$1: #{$1}" unless $1.nil?
         
     | 
| 
       26 
     | 
    
         
            -
                Oboe.logger.warn "$2: #{$2}" unless $2.nil?
         
     | 
| 
       27 
     | 
    
         
            -
                Oboe.logger.warn "$3: #{$3}" unless $3.nil?
         
     | 
| 
       28 
     | 
    
         
            -
                Oboe.logger.warn "$4: #{$4}" unless $4.nil?
         
     | 
| 
       29 
     | 
    
         
            -
                Oboe.logger.warn "Oboe.loaded == #{Oboe.loaded}"
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
                using_jruby = defined?(JRUBY_VERSION)
         
     | 
| 
       32 
     | 
    
         
            -
                Oboe.logger.warn "Using JRuby?: #{yesno(using_jruby)}"
         
     | 
| 
       33 
     | 
    
         
            -
                if using_jruby
         
     | 
| 
       34 
     | 
    
         
            -
                  Oboe.logger.warn "Joboe Agent Status: #{Java::ComTracelyticsAgent::Agent.getStatus}"
         
     | 
| 
       35 
     | 
    
         
            -
                end
         
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
                on_heroku = Oboe.heroku?
         
     | 
| 
       38 
     | 
    
         
            -
                Oboe.logger.warn "On Heroku?: #{yesno(on_heroku)}"
         
     | 
| 
       39 
     | 
    
         
            -
                if on_heroku
         
     | 
| 
       40 
     | 
    
         
            -
                  Oboe.logger.warn "TRACEVIEW_URL: #{ENV['TRACEVIEW_URL']}"
         
     | 
| 
       41 
     | 
    
         
            -
                end
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
                Oboe.logger.warn "Oboe::Ruby defined?: #{yesno(defined?(Oboe::Ruby))}"
         
     | 
| 
       44 
     | 
    
         
            -
                Oboe.logger.warn "Oboe.reporter: #{Oboe.reporter}"
         
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       47 
     | 
    
         
            -
                Oboe.logger.warn "* Frameworks"
         
     | 
| 
       48 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
                using_rails = defined?(::Rails)
         
     | 
| 
       51 
     | 
    
         
            -
                Oboe.logger.warn "Using Rails?: #{yesno(using_rails)}"
         
     | 
| 
       52 
     | 
    
         
            -
                if using_rails
         
     | 
| 
       53 
     | 
    
         
            -
                  Oboe.logger.warn "Oboe::Rails loaded?: #{yesno(defined?(::Oboe::Rails))}"
         
     | 
| 
       54 
     | 
    
         
            -
                end
         
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
                using_sinatra = defined?(::Sinatra)
         
     | 
| 
       57 
     | 
    
         
            -
                Oboe.logger.warn "Using Sinatra?: #{yesno(using_sinatra)}"
         
     | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
                using_padrino = defined?(::Padrino)
         
     | 
| 
       60 
     | 
    
         
            -
                Oboe.logger.warn "Using Padrino?: #{yesno(using_padrino)}"
         
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
                using_grape = defined?(::Grape)
         
     | 
| 
       63 
     | 
    
         
            -
                Oboe.logger.warn "Using Grape?: #{yesno(using_grape)}"
         
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       66 
     | 
    
         
            -
                Oboe.logger.warn "* TraceView Libraries"
         
     | 
| 
       67 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       68 
     | 
    
         
            -
                files = Dir.glob('/usr/lib/liboboe*')
         
     | 
| 
       69 
     | 
    
         
            -
                if files.empty?
         
     | 
| 
       70 
     | 
    
         
            -
                  Oboe.logger.warn "Error: No liboboe libs!"
         
     | 
| 
       71 
     | 
    
         
            -
                else
         
     | 
| 
       72 
     | 
    
         
            -
                  files.each { |f|
         
     | 
| 
       73 
     | 
    
         
            -
                    Oboe.logger.warn f
         
     | 
| 
       74 
     | 
    
         
            -
                  }
         
     | 
| 
       75 
     | 
    
         
            -
                end
         
     | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       78 
     | 
    
         
            -
                Oboe.logger.warn "* Raw __Init KVs"
         
     | 
| 
       79 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       80 
     | 
    
         
            -
                platform_info = Oboe::Util.build_report
         
     | 
| 
       81 
     | 
    
         
            -
                platform_info.each { |k,v|
         
     | 
| 
       82 
     | 
    
         
            -
                  Oboe.logger.warn "#{k}: #{v}"
         
     | 
| 
       83 
     | 
    
         
            -
                }
         
     | 
| 
       84 
     | 
    
         
            -
                
         
     | 
| 
       85 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       86 
     | 
    
         
            -
                Oboe.logger.warn "* END TraceView Support Report"
         
     | 
| 
       87 
     | 
    
         
            -
                Oboe.logger.warn "*   Support Email: traceviewsupport@appneta.com"
         
     | 
| 
       88 
     | 
    
         
            -
                Oboe.logger.warn "*   Support Portal: https://support.tv.appneta.com"
         
     | 
| 
       89 
     | 
    
         
            -
                Oboe.logger.warn "*   Freenode IRC: #appneta"
         
     | 
| 
       90 
     | 
    
         
            -
                Oboe.logger.warn "*   Github: https://github.com/appneta/oboe-ruby"
         
     | 
| 
       91 
     | 
    
         
            -
                Oboe.logger.warn "********************************************************"
         
     | 
| 
       92 
     | 
    
         
            -
                nil
         
     | 
| 
       93 
     | 
    
         
            -
              end
         
     | 
| 
       94 
     | 
    
         
            -
            end
         
     |