Fix spring boot handling
MODIFY
instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/TraceAspectAutoConfiguration.java
instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/TraceAspectAutoConfiguration.java
@@ -32,7 +32,7 @@ public class TraceAspectAutoConfiguration {
@Bean
@ConditionalOnClass(WithSpan.class)
- public WithSpanAspect instrumentationWithSpanAspect(
+ public InstrumentationWithSpanAspect instrumentationWithSpanAspect(
OpenTelemetry openTelemetry, ParameterNameDiscoverer parameterNameDiscoverer) {
return new InstrumentationWithSpanAspect(openTelemetry, parameterNameDiscoverer);
}
@@ -40,7 +40,7 @@ public class TraceAspectAutoConfiguration {
@Bean
@SuppressWarnings("deprecation") // instrumenting deprecated class for backwards compatibility
@ConditionalOnClass(io.opentelemetry.extension.annotations.WithSpan.class)
- public WithSpanAspect sdkExtensionWithSpanAspect(
+ public SdkExtensionWithSpanAspect sdkExtensionWithSpanAspect(
OpenTelemetry openTelemetry, ParameterNameDiscoverer parameterNameDiscoverer) {
return new SdkExtensionWithSpanAspect(openTelemetry, parameterNameDiscoverer);
}

Fix spring boot @WithSpan handling (#6619)