@Test public void testIsTraced() { HttpServletRequest request = Mockito.mock(HttpServletRequest.class); Mockito.when(request.getAttribute(TracingFilter.SERVER_SPAN_CONTEXT)).thenReturn(Mockito.mock(SpanContext.class)); assertTrue(TracingHandlerInterceptor.isTraced(request)); }
static boolean isTraced(HttpServletRequest httpServletRequest) { return httpServletRequest.getAttribute(TracingFilter.SERVER_SPAN_CONTEXT) instanceof SpanContext; }
TracingHandlerInterceptor extends HandlerInterceptorAdapter { static boolean isTraced(HttpServletRequest httpServletRequest) { return httpServletRequest.getAttribute(TracingFilter.SERVER_SPAN_CONTEXT) instanceof SpanContext; } }
TracingHandlerInterceptor extends HandlerInterceptorAdapter { static boolean isTraced(HttpServletRequest httpServletRequest) { return httpServletRequest.getAttribute(TracingFilter.SERVER_SPAN_CONTEXT) instanceof SpanContext; } TracingHandlerInterceptor(Tracer tracer);  TracingHandlerInterceptor(Tracer tracer, List<HandlerInterceptorSpanDecorator> decorators); }
TracingHandlerInterceptor extends HandlerInterceptorAdapter { static boolean isTraced(HttpServletRequest httpServletRequest) { return httpServletRequest.getAttribute(TracingFilter.SERVER_SPAN_CONTEXT) instanceof SpanContext; } TracingHandlerInterceptor(Tracer tracer);  TracingHandlerInterceptor(Tracer tracer, List<HandlerInterceptorSpanDecorator> decorators); @Override boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object handler); @Override void afterConcurrentHandlingStarted(
            HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object handler); @Override void afterCompletion(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse,
                                Object handler, Exception ex); }
TracingHandlerInterceptor extends HandlerInterceptorAdapter { static boolean isTraced(HttpServletRequest httpServletRequest) { return httpServletRequest.getAttribute(TracingFilter.SERVER_SPAN_CONTEXT) instanceof SpanContext; } TracingHandlerInterceptor(Tracer tracer);  TracingHandlerInterceptor(Tracer tracer, List<HandlerInterceptorSpanDecorator> decorators); @Override boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object handler); @Override void afterConcurrentHandlingStarted(
            HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object handler); @Override void afterCompletion(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse,
                                Object handler, Exception ex);  }