module Oboe::API

Support for Oboe::API calls

Public Class Methods

method_missing(sym, *args, &blk) click to toggle source
# File lib/oboe/backward_compatibility.rb, line 17
def self.method_missing(sym, *args, &blk)
  # Notify of deprecation only once
  unless @deprecated_notified
    TraceView.logger.warn "[traceview/warn] Note that Oboe::API has been renamed to TraceView::API. (#{sym}:#{args})"
    TraceView.logger.warn '[traceview/warn] Oboe::API will be deprecated in a future version.'
    TraceView.logger.warn "[traceview/warn] Caller: #{Kernel.caller[0]}"
    @deprecated_notified = true
  end
  TraceView::API.send(sym, *args, &blk)
end