class SpanCustomizingHandlerInterceptor implements HandlerInterceptor {

  @Override
  public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object o) {
    Object span = request.getAttribute(SpanCustomizer.class.getName());
    if (span instanceof SpanCustomizer) {
      setHttpRouteAttribute(request);
      handlerParser.preHandle(request, o, (SpanCustomizer) span);
    }
    return true;
  }

    SpanCustomizingHandlerInterceptor();

}