Class SpanWrapper


  • @Internal
    public class SpanWrapper
    extends Object
    Wraps a RequestSpan, with the value-add that it automatically records how long the operation took for transaction logging.
    • Constructor Detail

      • SpanWrapper

        public SpanWrapper​(RequestSpan span)
    • Method Detail

      • elapsedMicros

        public long elapsedMicros()
      • finish

        public long finish()
      • finishWithErrorStatus

        public long finishWithErrorStatus()
      • setErrorStatus

        public void setErrorStatus()
      • recordExceptionAndSetErrorStatus

        public void recordExceptionAndSetErrorStatus​(Throwable err)
      • recordException

        public void recordException​(Throwable err)
      • isInternal

        public boolean isInternal()