diff --git a/instrumentation/racecar/lib/opentelemetry/instrumentation/racecar/instrumentation.rb b/instrumentation/racecar/lib/opentelemetry/instrumentation/racecar/instrumentation.rb index e7904cbb89..85c54565c8 100644 --- a/instrumentation/racecar/lib/opentelemetry/instrumentation/racecar/instrumentation.rb +++ b/instrumentation/racecar/lib/opentelemetry/instrumentation/racecar/instrumentation.rb @@ -14,7 +14,7 @@ class Instrumentation < OpenTelemetry::Instrumentation::Base MINIMUM_VERSION = Gem::Version.new('2.0') compatible do - Gem.loaded_specs['racecar'].version >= MINIMUM_VERSION + ::Racecar::VERSION >= MINIMUM_VERSION end install do |_config|