Sha256: 85aa4d98f752e22e584ef9e57835200c5caf12f9bf4f1d133f22b24820420fa1
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
# Copyright (c) 2013 by Tracelytics, Inc. # All rights reserved. module OboeHeroku; end begin require "oboe-heroku/thread_local" require 'oboe-heroku/base' # TRACEVIEW_URL env var is standard with the Heroku addon. We # use it to determine if we are actually running in Heroku or not. if ENV.key?('TRACEVIEW_URL') and (($0 =~ /rake$/i) == nil) require 'oboe_metal.so' require 'heroku_metal' require 'oboe-heroku/loading' require 'oboe-heroku/version' # Require the core oboe gem require 'oboe' ::OboeHeroku::Loading.configure if Oboe.loaded end rescue LoadError => e $stderr.puts "[oboe-heroku/error] Failed to load support libs: #{e.message}" Oboe.loaded = false if ENV.has_key?('TRACEVIEW_DEBUG_LEVEL') and (ENV['TRACEVIEW_DEBUG_LEVEL'].to_i > 1) $stderr.puts e.backtrace.join("\n") end rescue Exception => e $stderr.puts "[oboe-heroku/error] #{e.message}" Oboe.loaded = false if ENV.has_key?('TRACEVIEW_DEBUG_LEVEL') and (ENV['TRACEVIEW_DEBUG_LEVEL'].to_i > 1) $stderr.puts e.backtrace.join("\n") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oboe-heroku-0.9.17.4 | lib/oboe-heroku.rb |