Sha256: dd71f92edfcb29d184ab450b71b18c6e2cbd7a9a59cea26cef7576a1d3c4fce0

Contents?: true

Size: 695 Bytes

Versions: 21

Compression:

Stored size: 695 Bytes

Contents

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

21 entries across 21 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.51.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.50.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.49.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.48.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.47.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.46.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.45.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.44.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.43.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.42.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.41.0 lib/ddtrace/ext/forced_tracing.rb
ls-trace-0.2.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.40.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.39.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.38.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.37.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.36.0 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.35.2 lib/ddtrace/ext/forced_tracing.rb
ddtrace-0.35.1 lib/ddtrace/ext/forced_tracing.rb