code: public static void setError(final Span span, final Exception cause) {
          span.setTag(Tags.ERROR.getKey(), true).log(System.currentTimeMillis(), getReason(cause));
      }
docs: Set error.
  
  @param span span to be set
  @param cause failure cause of span