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 378bfe9ee4c7..eb67edf6e1b3 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 @@ -8,7 +8,7 @@ import io.opentelemetry.api.OpenTelemetry; import io.opentelemetry.api.trace.TracerProvider; import io.opentelemetry.instrumentation.spring.autoconfigure.internal.MapConverter; -import io.opentelemetry.instrumentation.spring.autoconfigure.internal.SpringComponentLoader; +import io.opentelemetry.instrumentation.spring.autoconfigure.internal.OpenTelemetrySdkComponentLoader; import io.opentelemetry.instrumentation.spring.autoconfigure.properties.OtelResourceProperties; import io.opentelemetry.instrumentation.spring.autoconfigure.properties.OtlpExporterProperties; import io.opentelemetry.instrumentation.spring.autoconfigure.properties.PropagationProperties; @@ -60,8 +60,9 @@ public MapConverter mapConverter() { } @Bean - public SpringComponentLoader springComponentLoader(ApplicationContext applicationContext) { - return new SpringComponentLoader(applicationContext); + public OpenTelemetrySdkComponentLoader openTelemetrySdkComponentLoader( + ApplicationContext applicationContext) { + return new OpenTelemetrySdkComponentLoader(applicationContext); } @Bean @@ -82,7 +83,7 @@ public OpenTelemetry openTelemetry( OtlpExporterProperties otlpExporterProperties, OtelResourceProperties resourceProperties, PropagationProperties propagationProperties, - SpringComponentLoader componentLoader, + OpenTelemetrySdkComponentLoader componentLoader, ObjectProvider openTelemetryConsumerProvider) { OpenTelemetry openTelemetry = diff --git a/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/SpringComponentLoader.java b/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/OpenTelemetrySdkComponentLoader.java similarity index 79% rename from instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/SpringComponentLoader.java rename to instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/OpenTelemetrySdkComponentLoader.java index fc99c8d753db..94856dce164d 100644 --- a/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/SpringComponentLoader.java +++ b/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/OpenTelemetrySdkComponentLoader.java @@ -15,13 +15,13 @@ * This class is internal and is hence not for public use. Its APIs are unstable and can change at * any time. */ -public class SpringComponentLoader implements ComponentLoader { +public class OpenTelemetrySdkComponentLoader implements ComponentLoader { private final ApplicationContext applicationContext; private final SpiHelper spiHelper = - SpiHelper.create(SpringComponentLoader.class.getClassLoader()); + SpiHelper.create(OpenTelemetrySdkComponentLoader.class.getClassLoader()); - public SpringComponentLoader(ApplicationContext applicationContext) { + public OpenTelemetrySdkComponentLoader(ApplicationContext applicationContext) { this.applicationContext = applicationContext; }