Sha256: dfe368956b4fae10714757464af6a8c9e6cd5dae40458799f55943c50de284de

Contents?: true

Size: 748 Bytes

Versions: 3

Compression:

Stored size: 748 Bytes

Contents

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

begin
  if ENV.has_key?('TRACEVIEW_URL')
    begin
      require 'heroku_metal'
      require 'oboe_metal.so'
    rescue LoadError => e
      if ENV.has_key?('TRACEVIEW_DEBUG_LEVEL') and (ENV['TRACEVIEW_DEBUG_LEVEL'].to_i > 1)
        $stderr.puts "[oboe-heroku/error] Could not load oboe-heroku dependencies: #{e.message}"
        $stderr.puts e.backtrace.join("\n")
      end
    end

    require 'oboe-heroku/loading'
    require 'oboe-heroku/version'

    # Require the core oboe gem
    require 'oboe'

    ::OboeHeroku::Loading.configure
  end
rescue Exception => e
  $stderr.puts "[oboe-heroku/error] Problem loading: #{e.message}"
  $stderr.puts e.backtrace.join("\n")
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oboe-heroku-0.9.9.0 lib/oboe-heroku.rb
oboe-heroku-0.9.8.5 lib/oboe-heroku.rb
oboe-heroku-0.9.7.1 lib/oboe-heroku.rb