Sha256: b5c45762193bfbc03f186c6f4dccb9ec7e963cac675328862dbff146c99ed43f

Contents?: true

Size: 1.57 KB

Versions: 3

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'

  if Oboe.loaded
    require 'oboe/loading'
    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

3 entries across 3 versions & 1 rubygems

Version Path
oboe-2.7.3.1-java lib/oboe.rb
oboe-2.7.3.1 lib/oboe.rb
oboe-2.7.2.fuchs2 lib/oboe.rb