Sha256: d4c82a0da391a39f102f037922eccf8ec07fe4255615e5e68d41bf14d5976b1f
Contents?: true
Size: 709 Bytes
Versions: 5
Compression:
Stored size: 709 Bytes
Contents
# typed: true require 'ddtrace/ext/manual_tracing' require 'ddtrace/tracer' module Datadog module Ext # Defines constants for forced tracing module ForcedTracing @deprecation_warning_shown = false 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 end end end
Version data entries
5 entries across 5 versions & 1 rubygems