Sha256: 301ed88eb251ef31fca2e08c8af20966be266dfaf78e324ac002b223e7d55cd4
Contents?: true
Size: 856 Bytes
Versions: 12
Compression:
Stored size: 856 Bytes
Contents
# typed: 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 PATCH_ONLY_ONCE = Core::Utils::OnlyOnce.new module_function def patched? PATCH_ONLY_ONCE.ran? end def patch PATCH_ONLY_ONCE.run do begin ::Presto::Client::Client.include(Instrumentation::Client) rescue StandardError => e Datadog.logger.error("Unable to apply Presto integration: #{e}") end end end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems