Sha256: 53e2d99669423ed7d5bd1f9c2780542620a22c0242239a06d1cd1eb485604c47

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

# typed: true

require 'datadog/tracing/contrib/dalli/ext'
require 'datadog/tracing/contrib/dalli/instrumentation'
require 'datadog/tracing/contrib/patcher'

module Datadog
  module Tracing
    module Contrib
      module Dalli
        # Patcher enables patching of 'dalli' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            Integration.dalli_class.include(Instrumentation)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.2.0 lib/datadog/tracing/contrib/dalli/patcher.rb
ddtrace-1.1.0 lib/datadog/tracing/contrib/dalli/patcher.rb