From 325d0004987252d6a8e6dc497d9ac5594493c1cb Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 17 May 2024 10:15:03 -0700 Subject: [PATCH] Simplify comment (#11389) --- .../autoconfigure/OpenTelemetryAutoConfiguration.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java b/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java index a850938821c3..270e00ba3ad5 100644 --- a/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java +++ b/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java @@ -116,12 +116,10 @@ public OpenTelemetry openTelemetry( /** * Expose the {@link ConfigProperties} bean for use in other auto-configurations. * - *

Why not use spring boot properties directly?
- * 1. issues with older spring boot versions
- * 2. support for {@link + *

Not using spring boot properties directly in order to support {@link * io.opentelemetry.sdk.autoconfigure.spi.AutoConfigurationCustomizer#addPropertiesCustomizer(Function)} * and {@link - * io.opentelemetry.sdk.autoconfigure.spi.AutoConfigurationCustomizer#addPropertiesSupplier(Supplier)} + * io.opentelemetry.sdk.autoconfigure.spi.AutoConfigurationCustomizer#addPropertiesSupplier(Supplier)}. */ @Bean public ConfigProperties otelProperties(