Skip to content

Commit

Permalink
Fix spring boot @WithSpan handling (open-telemetry#6619)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored and LironKS committed Dec 4, 2022
1 parent 91883dc commit 40fae54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public ParameterNameDiscoverer parameterNameDiscoverer() {

@Bean
@ConditionalOnClass(WithSpan.class)
public WithSpanAspect instrumentationWithSpanAspect(
public InstrumentationWithSpanAspect instrumentationWithSpanAspect(
OpenTelemetry openTelemetry, ParameterNameDiscoverer parameterNameDiscoverer) {
return new InstrumentationWithSpanAspect(openTelemetry, parameterNameDiscoverer);
}

@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);
}
Expand Down

0 comments on commit 40fae54

Please sign in to comment.