lib/joboe_metal.rb in oboe-2.6.7.1 vs lib/joboe_metal.rb in oboe-2.6.8
- old
+ new
@@ -51,10 +51,10 @@
begin
return unless Oboe.loaded
Oboe_metal::Context.init()
- if ENV['RACK_ENV'] == "test"
+ if ENV.has_key?("OBOE_GEM_TEST")
Oboe.reporter = Oboe::FileReporter.new("/tmp/trace_output.bson")
else
Oboe.reporter = Oboe::UdpReporter.new(Oboe::Config[:reporter_host])
end