diff --git a/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/TraceAspectAutoConfiguration.java b/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/TraceAspectAutoConfiguration.java index 86f2bae5a7d1..2f568eebe7fd 100644 --- a/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/TraceAspectAutoConfiguration.java +++ b/instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/TraceAspectAutoConfiguration.java @@ -32,7 +32,7 @@ public ParameterNameDiscoverer parameterNameDiscoverer() { @Bean @ConditionalOnClass(WithSpan.class) - public WithSpanAspect instrumentationWithSpanAspect( + public InstrumentationWithSpanAspect instrumentationWithSpanAspect( OpenTelemetry openTelemetry, ParameterNameDiscoverer parameterNameDiscoverer) { return new InstrumentationWithSpanAspect(openTelemetry, parameterNameDiscoverer); } @@ -40,7 +40,7 @@ public WithSpanAspect instrumentationWithSpanAspect( @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); }