module Datadog::Ext::ForcedTracing

Defines constants for forced tracing

Public Class Methods

const_missing(name) click to toggle source
Calls superclass method
# File lib/ddtrace/ext/forced_tracing.rb, line 11
def self.const_missing(name)
  super unless Ext::ManualTracing.const_defined?(name)

  # Only log each deprecation warning once (safeguard against log spam)
  unless @deprecation_warning_shown
    Datadog.logger.warn(
      'forced tracing: Datadog::Ext::ForcedTracing has been renamed to Datadog::Ext::ManualTracing'
    )
    @deprecation_warning_shown = true
  end

  Ext::ManualTracing.const_get(name)
end