Interface ActivationListener

    • Method Detail

      • beforeActivate

        void beforeActivate​(AbstractSpan<?> span)
                     throws java.lang.Throwable
        Parameters:
        span - the AbstractSpan that is being activated
        Throws:
        java.lang.Throwable - if there was an error while calling this method
      • beforeActivate

        void beforeActivate​(ErrorCapture error)
                     throws java.lang.Throwable
        Parameters:
        error - the ErrorCapture that is being activated
        Throws:
        java.lang.Throwable - if there was an error while calling this method
      • afterDeactivate

        void afterDeactivate​(AbstractSpan<?> deactivatedSpan)
                      throws java.lang.Throwable
        A callback for AbstractSpan.deactivate()

        Note: the corresponding span may already be ended and recycled. That's why there is no AbstractSpan parameter.

        Parameters:
        deactivatedSpan - the context that has just been deactivated
        Throws:
        java.lang.Throwable - if there was an error while calling this method
      • afterDeactivate

        void afterDeactivate​(ErrorCapture deactivatedError)
                      throws java.lang.Throwable
        Parameters:
        deactivatedError - the error that has just been deactivated
        Throws:
        java.lang.Throwable - if there was an error while calling this method