Skip to content

Commit

Permalink
Fix spring boot @WithSpan handling (#6619)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Sep 14, 2022
1 parent c0b0722 commit 5afd6b3
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 5afd6b3

Please sign in to comment.