You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using https://github.com/spring-projects/spring-petclinic as a simple test example to test out how to use the library. A jaeger Tracer is configured and created. I only added PetClinicApplicationConfiguration that implements WebMvcConfigurer tow wireup a tracer and and TracingHandlerInterceptor. When I run the app, I can see the log message "TracingHandlerInterceptor added". But when I bring up the web and click on the front end . I am seeing the any of the HandlerInterceptorSpanDecorator being run. No log messages are printed from inside the Span decorator. .Below are the two files:
I am using https://github.com/spring-projects/spring-petclinic as a simple test example to test out how to use the library. A jaeger Tracer is configured and created. I only added PetClinicApplicationConfiguration that implements WebMvcConfigurer tow wireup a tracer and and TracingHandlerInterceptor. When I run the app, I can see the log message "TracingHandlerInterceptor added". But when I bring up the web and click on the front end . I am seeing the any of the HandlerInterceptorSpanDecorator being run. No log messages are printed from inside the Span decorator. .Below are the two files:
PetClinicApplicationConfiguraton.java
package org.springframework.samples.tracing;
import io.opentracing.Span;
import io.opentracing.contrib.spring.web.interceptor.*;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.method.HandlerMethod;
import org.bson.types.ObjectId;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Optional;
public class TracingHandlerDecorator implements HandlerInterceptorSpanDecorator {
private static Logger LOGGER = LogManager.getLogger();
}
The text was updated successfully, but these errors were encountered: