Fixed the accidental commit

This commit is contained in:
Marcin Grzejszczak
2018-03-28 15:38:30 +02:00
parent 3713a027b3
commit 306c34a56a

View File

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