java-spring-web icon indicating copy to clipboard operation
java-spring-web copied to clipboard

Why is TracingHandlerInterceptor conditional on missing TracingFilter?

Open whiskeysierra opened this issue 6 years ago • 3 comments

Code in question:

https://github.com/opentracing-contrib/java-spring-web/blob/8b802bafbc2ae81cb4677e0a9273a2f6a54519ea/opentracing-spring-web-starter/src/main/java/io/opentracing/contrib/spring/web/starter/ServerTracingAutoConfiguration.java#L100-L102

The source code of TracingHandlerInterceptor seems to suggest that it's meant to be used in conjunction with the TracingFilter:

https://github.com/opentracing-contrib/java-spring-web/blob/696627213665174f3df5e4dbad405045066d54d0/opentracing-spring-web/src/main/java/io/opentracing/contrib/spring/web/interceptor/TracingHandlerInterceptor.java#L90

whiskeysierra avatar Nov 27 '19 14:11 whiskeysierra

@pavolloffay do you remember? I think you added that piece of code.

geoand avatar Nov 27 '19 14:11 geoand

Based on git blame https://github.com/opentracing-contrib/java-spring-web/pull/39

pavolloffay avatar Nov 29 '19 17:11 pavolloffay