Sha256: 0b6bd3bfc2a47b1226de4d408dc782fbfc28fc7bbe59cd730b7f3ebf1b32e073

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../core/utils/only_once'
require_relative 'instrumentation'
require_relative '../patcher'

module Datadog
  module Tracing
    module Contrib
      # Datadog Httprb integration.
      module Httprb
        # Patcher enables patching of 'httprb' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            ::HTTP::Client.include(Instrumentation)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datadog-2.7.0 lib/datadog/tracing/contrib/httprb/patcher.rb
datadog-2.6.0 lib/datadog/tracing/contrib/httprb/patcher.rb
datadog-2.5.0 lib/datadog/tracing/contrib/httprb/patcher.rb
datadog-2.4.0 lib/datadog/tracing/contrib/httprb/patcher.rb