Module: Datadog::Ext::ForcedTracing
- Defined in:
- lib/ddtrace/ext/forced_tracing.rb
Overview
Defines constants for forced tracing
Class Method Summary collapse
Class Method Details
.const_missing(name) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ddtrace/ext/forced_tracing.rb', line 10 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::Tracer.log.warn( 'forced tracing: Datadog::Ext::ForcedTracing has been renamed to Datadog::Ext::ManualTracing' ) @deprecation_warning_shown = true end Ext::ManualTracing.const_get(name) end |