Module: Datadog::Tracing::Contrib::OpenSearch::Patcher

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/opensearch/patcher.rb

Overview

Patcher enables patching of ‘opensearch’ module.

Defined Under Namespace

Modules: Client

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



21
22
23
24
25
26
27
# File 'lib/datadog/tracing/contrib/opensearch/patcher.rb', line 21

def patch
  require 'uri'
  require 'json'
  require_relative 'quantize'

  ::OpenSearch::Transport::Client.prepend(Client)
end