Module: OboeHeroku::Loading
- Defined in:
- lib/oboe-heroku/loading.rb
Class Method Summary collapse
Class Method Details
.configure ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/oboe-heroku/loading.rb', line 4 def self.configure # OBOE_TRACE_NEVER 0 # OBOE_TRACE_ALWAYS 1 # OBOE_TRACE_THROUGH 2 if defined?(Oboe::Config) case Oboe::Config[:tracing_mode].to_s.downcase.to_sym when :never # OBOE_TRACE_NEVER Oboe::Context.setTracingMode(0) when :always # OBOE_TRACE_ALWAYS Oboe::Context.setTracingMode(1) else # OBOE_TRACE_ALWAYS Oboe::Context.setTracingMode(1) # We support 'never' or 'always' on Heroku. If :tracing_mode is # neither of these, default to always Oboe::Config[:tracing_mode] = 'always' end else # OBOE_TRACE_ALWAYS Oboe::Context.setTracingMode(1) end end |