Sha256: 7a927a4a9d07370c8dd1e62a511b756c35ebfa120a8a9926946e468e5d1732ad

Contents?: true

Size: 1.57 KB

Versions: 37

Compression:

Stored size: 1.57 KB

Contents

# Copyright (c) 2013 AppNeta, Inc.
# All rights reserved.

begin
  require 'oboe/version'
  require 'oboe/thread_local'
  require 'oboe/logger'
  require 'oboe/util'
  require 'oboe/xtrace'
  require 'oboe/support'

  # If OboeHeroku is already defined then we are in a PaaS environment
  # with an alternate metal (see the oboe-heroku gem)
  unless defined?(OboeHeroku)
    require 'oboe/base'

    begin
      if RUBY_PLATFORM == 'java'
        require '/usr/local/tracelytics/tracelyticsagent.jar'
        require 'joboe_metal'
      else
        require "oboe_metal.so"
        require "oboe_metal.rb"
      end
    rescue LoadError
      Oboe.loaded = false

      unless ENV['RAILS_GROUP'] == 'assets' or ENV['IGNORE_TRACEVIEW_WARNING']
        $stderr.puts '=============================================================='
        $stderr.puts 'Missing TraceView libraries.  Tracing disabled.'
        $stderr.puts 'See: http://bit.ly/1DaNOjw'
        $stderr.puts '=============================================================='
      end
    end
  end

  require 'oboe/config'
  require 'oboe/loading'

  if Oboe.loaded
    require 'oboe/method_profiling'
    require 'oboe/instrumentation'

    # Frameworks
    require 'oboe/frameworks/rails'
    require 'oboe/frameworks/sinatra'
    require 'oboe/frameworks/padrino'
    require 'oboe/frameworks/grape'
  end

  # Load Ruby module last.  If there is no framework detected,
  # it will load all of the Ruby instrumentation
  require 'oboe/ruby'
rescue => e
  $stderr.puts "[oboe/error] Problem loading: #{e.inspect}"
  $stderr.puts e.backtrace
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
oboe-2.7.19-java lib/oboe.rb
oboe-2.7.19 lib/oboe.rb
oboe-2.7.18-java lib/oboe.rb
oboe-2.7.18 lib/oboe.rb
oboe-2.7.17.1-java lib/oboe.rb
oboe-2.7.17.1 lib/oboe.rb
oboe-2.7.16.1 lib/oboe.rb
oboe-2.7.16.1-java lib/oboe.rb
oboe-2.7.15.1-java lib/oboe.rb
oboe-2.7.15.1 lib/oboe.rb
oboe-2.7.14.1-java lib/oboe.rb
oboe-2.7.14.1 lib/oboe.rb
oboe-2.7.13.3-java lib/oboe.rb
oboe-2.7.13.3 lib/oboe.rb
oboe-2.7.12.1-java lib/oboe.rb
oboe-2.7.12.1 lib/oboe.rb
oboe-2.7.11.1 lib/oboe.rb
oboe-2.7.11.1-java lib/oboe.rb
oboe-2.7.10.1-java lib/oboe.rb
oboe-2.7.10.1 lib/oboe.rb