From ef15a172ab1a32c79d972b60ccdceda31fdf949e Mon Sep 17 00:00:00 2001 From: Juli Tera Date: Thu, 12 Sep 2024 09:23:55 -0700 Subject: [PATCH] Add comments --- .../opentelemetry/instrumentation/aws_sdk/instrumentation.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 5fed9fd3a..80162e3b7 100644 --- a/instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk/instrumentation.rb +++ b/instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk/instrumentation.rb @@ -62,6 +62,11 @@ def loaded_service_clients end end + # This check does the following: + # 1 - Checks if the service client is autoload or not + # 2 - Validates whether if is a service client + # note that Seahorse::Client::Base is a superclass for V3 clients + # but for V2, it is Aws::Client def loaded_service?(constant, service_module) !::Aws.autoload?(constant) && service_module.is_a?(Module) &&