Sha256: a9a7799656c34635cbfb079accae4555af4a56021a494f5db5851777a414403b

Contents?: true

Size: 532 Bytes

Versions: 7

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

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

module Datadog
  module Tracing
    module Contrib
      module Presto
        # Patcher enables patching of 'presto-client' module.
        module Patcher
          include Contrib::Patcher

          module_function

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/tracing/contrib/presto/patcher.rb
datadog-2.8.0 lib/datadog/tracing/contrib/presto/patcher.rb
datadog-2.7.1 lib/datadog/tracing/contrib/presto/patcher.rb
datadog-2.7.0 lib/datadog/tracing/contrib/presto/patcher.rb
datadog-2.6.0 lib/datadog/tracing/contrib/presto/patcher.rb
datadog-2.5.0 lib/datadog/tracing/contrib/presto/patcher.rb
datadog-2.4.0 lib/datadog/tracing/contrib/presto/patcher.rb