lib/oboe/api/logging.rb in oboe-2.6.2.0 vs lib/oboe/api/logging.rb in oboe-2.6.3.0

- old
+ new

@@ -58,18 +58,18 @@ # opts - A hash containing key/value pairs that will be reported along # with this event (optional). # # Returns nothing. def log_start(layer, xtrace, opts={}) - return if Oboe.never? + return if Oboe.never? or (opts.has_key?(:URL) and ::Oboe::Util.static_asset?(opts[:URL])) if xtrace Oboe::Context.fromString(xtrace) end if Oboe.tracing? log_entry(layer, opts) - elsif Oboe.sample?(opts.merge(:layer => layer, :xtrace => xtrace)) or opts.has_key?('Force') + elsif Oboe.always? and (Oboe.sample?(opts.merge(:layer => layer, :xtrace => xtrace)) or opts.has_key?('Force')) log_event(layer, 'entry', Oboe::Context.startTrace, opts) end end # Public: Report an exit event.