lib/new_relic/agent/instrumentation/elasticsearch/chain.rb in newrelic_rpm-9.1.0 vs lib/new_relic/agent/instrumentation/elasticsearch/chain.rb in newrelic_rpm-9.2.0
- old
+ new
@@ -1,10 +1,10 @@
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true
module NewRelic::Agent::Instrumentation
- module Elasticsearch
+ module Elasticsearch::Chain
def self.instrument!
to_instrument = if ::Gem::Version.create(::Elasticsearch::VERSION) <
::Gem::Version.create('8.0.0')
::Elasticsearch::Transport::Client
else