lib/joboe_metal.rb in oboe-2.6.0.2 vs lib/joboe_metal.rb in oboe-2.6.1.0

- old
+ new

@@ -1,9 +1,11 @@ # Copyright (c) 2013 AppNeta, Inc. # All rights reserved. -module Oboe_metal < MetalBase +require 'base' + +module Oboe_metal include_package 'com.tracelytics.joboe' import 'com.tracelytics.joboe' include_package 'com.tracelytics.joboe.SettingsReader' import 'com.tracelytics.joboe.SettingsReader' include_package 'com.tracelytics.joboe.Context' @@ -82,10 +84,10 @@ end # Only report __Init from here if we are not instrumenting a framework. # Otherwise, frameworks will handle reporting __Init after full initialization unless defined?(::Rails) or defined?(::Sinatra) or defined?(::Padrino) - Oboe::API.report_init('rack') unless ["development", "test"].include? ENV['RACK_ENV'] + Oboe::API.report_init end rescue Exception => e $stderr.puts e.message raise