lib/opentelemetry/instrumentation/graphql/instrumentation.rb in opentelemetry-instrumentation-graphql-0.23.0 vs lib/opentelemetry/instrumentation/graphql/instrumentation.rb in opentelemetry-instrumentation-graphql-0.24.0
- old
+ new
@@ -10,10 +10,11 @@
module Instrumentation
module GraphQL
# The Instrumentation class contains logic to detect and install the GraphQL instrumentation
class Instrumentation < OpenTelemetry::Instrumentation::Base
compatible do
- gem_version <= Gem::Version.new('2.0.17')
+ Gem::Requirement.new('<= 2.0.17').satisfied_by?(gem_version) ||
+ Gem::Requirement.new('~> 2.0.19').satisfied_by?(gem_version)
end
install do |config|
require_dependencies
install_tracer(config)