Class ErrorSpanDecorator

  • All Implemented Interfaces:
    io.opentracing.contrib.spring.web.interceptor.HandlerInterceptorSpanDecorator

    @API(status=EXPERIMENTAL)
    public final class ErrorSpanDecorator
    extends Object
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.opentracing.contrib.spring.web.interceptor.HandlerInterceptorSpanDecorator

        io.opentracing.contrib.spring.web.interceptor.HandlerInterceptorSpanDecorator.HandlerUtils
    • Field Summary

      • Fields inherited from interface io.opentracing.contrib.spring.web.interceptor.HandlerInterceptorSpanDecorator

        HANDLER_METHOD_OPERATION_NAME, STANDARD_LOGS
    • Constructor Detail

      • ErrorSpanDecorator

        public ErrorSpanDecorator()
    • Method Detail

      • onResponse

        public void onResponse​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               Object handler,
                               io.opentracing.Span span)
      • onError

        public void onError​(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            Object handler,
                            Exception error,
                            io.opentracing.Span span)
      • onPreHandle

        public default void onPreHandle​(javax.servlet.http.HttpServletRequest request,
                                        Object handler,
                                        io.opentracing.Span span)
        Specified by:
        onPreHandle in interface io.opentracing.contrib.spring.web.interceptor.HandlerInterceptorSpanDecorator
      • onAfterCompletion

        public default void onAfterCompletion​(javax.servlet.http.HttpServletRequest request,
                                              javax.servlet.http.HttpServletResponse response,
                                              Object handler,
                                              @Nullable
                                              Exception error,
                                              io.opentracing.Span span)
        Specified by:
        onAfterCompletion in interface io.opentracing.contrib.spring.web.interceptor.HandlerInterceptorSpanDecorator
      • onAfterConcurrentHandlingStarted

        public default void onAfterConcurrentHandlingStarted​(javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response,
                                                             Object handler,
                                                             io.opentracing.Span span)
        Specified by:
        onAfterConcurrentHandlingStarted in interface io.opentracing.contrib.spring.web.interceptor.HandlerInterceptorSpanDecorator