From 029dca26ad75654c8adc6afeac8add0726374be9 Mon Sep 17 00:00:00 2001 From: Juli Tera Date: Thu, 12 Sep 2024 13:13:33 -0700 Subject: [PATCH] Fix loaded_service check --- .../opentelemetry/instrumentation/aws_sdk/instrumentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk/instrumentation.rb b/instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk/instrumentation.rb index 80162e3b7..917066992 100644 --- a/instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk/instrumentation.rb +++ b/instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk/instrumentation.rb @@ -71,7 +71,7 @@ def loaded_service?(constant, service_module) !::Aws.autoload?(constant) && service_module.is_a?(Module) && service_module.const_defined?(:Client) && - (service_module.const_get(:Client).superclass == Seahorse::Client::Base || Aws::Client) + [Seahorse::Client::Base, Aws::Client].include?(service_module.const_get(:Client).superclass) end end end