lib/oboe/api/tracing.rb in oboe-1.3.9.1 vs lib/oboe/api/tracing.rb in oboe-1.4.0.2
- old
+ new
@@ -116,10 +116,10 @@
# Returns the result of the block.
def start_trace_with_target(layer, xtrace, target, opts={})
log_start(layer, xtrace, opts)
exit_evt = Oboe::Context.createEvent
begin
- target['X-Trace'] = Oboe::Event.metadataString(exit_evt) if Oboe::Config.tracing?
+ target['X-Trace'] = Oboe::Event.metadataString(exit_evt) if Oboe.tracing?
yield
rescue Exception => e
log_exception(layer, e)
raise
ensure