Skip to content

Commit

Permalink
Lockdown Elasticsearch instrumentation to 7+
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Jun 25, 2024
1 parent c116a7d commit ffc6de4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/new_relic/agent/instrumentation/elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
named :elasticsearch

depends_on do
defined?(Elasticsearch)
defined?(Elasticsearch) &&
Gem::Version.create(Elasticsearch::VERSION) >= Gem::Version.create('7.0.0')
end

executes do
Expand Down

0 comments on commit ffc6de4

Please sign in to comment.