From 3f1adf7b6a65cf86f6044b88a9e7e1f1893464b0 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Wed, 14 Sep 2022 18:36:33 +0300 Subject: [PATCH] Fix spring boot @WithSpan handling --- .../autoconfigure/aspects/TraceAspectAutoConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }