Module: Oboe::Ruby

Extended by:
TraceView::ThreadLocal
Defined in:
lib/oboe/backward_compatibility.rb

Overview

Support for legacy Oboe::Ruby.load calls

Class Method Summary collapse

Methods included from TraceView::ThreadLocal

thread_local

Class Method Details

.method_missing(sym, *args) ⇒ Object



54
55
56
57
58
59
60
61
62
63
# File 'lib/oboe/backward_compatibility.rb', line 54

def self.method_missing(sym, *args)
  # Notify of deprecation only once
  unless @deprecated_notified
    TraceView.logger.warn "[traceview/warn] Note that Oboe::Ruby has been renamed to TraceView::Ruby. (#{sym}:#{args})"
    TraceView.logger.warn "[traceview/warn] Oboe::Ruby will be deprecated in a future version."
    TraceView.logger.warn "[traceview/warn] Caller: #{Kernel.caller[0]}"
    @deprecated_notified = true
  end
  TraceView::Ruby.send(sym, *args)
end