Fixed the accidental commit
This commit is contained in:
@@ -19,7 +19,6 @@ package org.springframework.cloud.sleuth.instrument.web;
|
||||
import brave.spring.webmvc.SpanCustomizingAsyncHandlerInterceptor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||
@@ -41,9 +40,4 @@ class TraceWebMvcConfigurer implements WebMvcConfigurer {
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(this.applicationContext.getBean(SpanCustomizingAsyncHandlerInterceptor.class));
|
||||
}
|
||||
|
||||
@Bean
|
||||
SpanCustomizingAsyncHandlerInterceptor spanCustomizingAsyncHandlerInterceptor() {
|
||||
return new SpanCustomizingAsyncHandlerInterceptor();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user