diff --git a/instrumentation/aws-sdk/aws-sdk-1.11/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v1_11/PluginImplUtil.java b/instrumentation/aws-sdk/aws-sdk-1.11/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v1_11/PluginImplUtil.java index 364bfffe5318..2292fbdb3c1e 100644 --- a/instrumentation/aws-sdk/aws-sdk-1.11/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v1_11/PluginImplUtil.java +++ b/instrumentation/aws-sdk/aws-sdk-1.11/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v1_11/PluginImplUtil.java @@ -45,10 +45,12 @@ static boolean isImplPresent(String implSimpleClassName) { // dependency is not on the class path). logger.log( Level.FINE, - e, () -> - implFullClassName - + " not present. " + "Failed to load " + + implFullClassName + + " (" + + e.getClass().getName() + + "). " + "Most likely, corresponding SDK component is either not on classpath or incompatible."); return false; } diff --git a/instrumentation/aws-sdk/aws-sdk-2.2/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/PluginImplUtil.java b/instrumentation/aws-sdk/aws-sdk-2.2/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/PluginImplUtil.java index 3ba1611a541e..e77e52129082 100644 --- a/instrumentation/aws-sdk/aws-sdk-2.2/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/PluginImplUtil.java +++ b/instrumentation/aws-sdk/aws-sdk-2.2/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/PluginImplUtil.java @@ -45,10 +45,12 @@ static boolean isImplPresent(String implSimpleClassName) { // dependency is not on the class path). logger.log( Level.FINE, - e, () -> - implFullClassName - + " not present. " + "Failed to load " + + implFullClassName + + " (" + + e.getClass().getName() + + "). " + "Most likely, corresponding SDK component is either not on classpath or incompatible."); return false; }