Module: Oboe::API

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

Overview

Support for Oboe::API calls

Constant Summary

Constants included from TraceView::API::Util

TraceView::API::Util::BACKTRACE_CUTOFF

Class Method Summary collapse

Methods included from TraceView::ThreadLocal

thread_local

Methods included from TraceView::API

extend_with_tracing

Methods included from TraceView::API::Util

#backtrace, #blacklisted?, #get_class_name, #pps, #trim_backtrace, #valid_key?

Class Method Details

.method_missing(sym, *args, &blk) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/oboe/backward_compatibility.rb', line 15

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