Sha256: 8592217c0285f463e89d64c1e03708900efd76c7ba27ada8d4c225187929c7af

Contents?: true

Size: 749 Bytes

Versions: 1

Compression:

Stored size: 749 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.initialize
  end
rescue Exception => e
  $stderr.puts "[oboe-heroku/error] Problem loading: #{e.message}"
  $stderr.puts e.backtrace.join("\n")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oboe-heroku-0.9.0.1 lib/oboe-heroku.rb