Sha256: bb026f1067e050a0a9fdcee6b138cf009bf50ca729df86de8f33a87a26d379d2

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

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

begin
  require 'oboe/version'
  require 'oboe/logger'
  require 'oboe/util'
  
  # If Oboe_metal is already defined then we are in a PaaS environment
  # with an alternate metal (such as Heroku: see the oboe-heroku gem)
  unless defined?(Oboe_metal)
    if RUBY_PLATFORM == 'java'
      require '/usr/local/tracelytics/tracelyticsagent.jar'
      require 'joboe_metal'
    else
      require 'oboe_metal.so'
      require 'oboe_metal'
    end
  end
 
  require 'oboe/config'
  require 'oboe/loading'
  require 'method_profiling'
  require 'oboe/instrumentation'
  require 'oboe/ruby'

  # Frameworks
  require 'oboe/frameworks/rails' if defined?(::Rails)

rescue LoadError
  $stderr.puts "=============================================================="
  $stderr.puts "Missing TraceView libraries.  Tracing disabled."
  $stderr.puts "See: https://support.tv.appneta.com/solution/articles/137973" 
  $stderr.puts "=============================================================="
rescue Exception => e
  $stderr.puts "[oboe/error] Problem loading: #{e.inspect}"
  $stderr.puts e.backtrace
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oboe-2.3.2 lib/oboe.rb