docs: public static void logError(Span span, Throwable e) {
          HashMap<String, Object> fields = new HashMap<>();
          fields.put(Fields.ERROR_OBJECT, e);
          String message = e.getMessage();
          if (message != null) {
              fields.put(Fields.MESSAGE, message);
          }
          span.log(fields);
      }