lib/oboe/frameworks/sinatra.rb in oboe-2.6.0.2 vs lib/oboe/frameworks/sinatra.rb in oboe-2.6.1.0
- old
+ new
@@ -56,8 +56,11 @@
unless defined?(::Padrino) and not (ENV['RACK_ENV'] == "test")
# Padrino has 'enhanced' routes and rendering so the Sinatra
# instrumentation won't work anyways. Only load for pure Sinatra apps.
::Oboe::Util.send_include(::Sinatra::Base, ::Oboe::Sinatra::Base)
::Oboe::Util.send_include(::Sinatra::Templates, ::Oboe::Sinatra::Templates)
+
+ # Report __Init after fork when in Heroku
+ Oboe::API.report_init unless Oboe.heroku?
end
end