code: private RpcServerLookoutModel createServerMetricsModel(SofaRequest request, SofaResponse response) {
  
          RpcServerLookoutModel rpcServerMetricsModel = new RpcServerLookoutModel();
  
          RpcInternalContext context = RpcInternalContext.getContext();
  
          String app = request.getTargetAppName();
          String service = request.getTargetServiceUniqueName();
          String method = request.getMethodName();
          String protocol = getStringAvoidNull(request.getRequestProp(RemotingConstants.HEAD_PROTOCOL));
          String invokeType = request.getInvokeType();
          String callerApp = getStringAvoidNull(request.getRequestProp(RemotingConstants.HEAD_APP_NAME));
          Long elapsedTime = getLongAvoidNull(context.getAttachment(RpcConstants.INTERNAL_KEY_IMPL_ELAPSE));
          boolean success = response != null && !response.isError() && response.getErrorMsg() == null &&
              (!(response.getAppResponse() instanceof Throwable));
  
          rpcServerMetricsModel.setApp(app);
          rpcServerMetricsModel.setService(service);
          rpcServerMetricsModel.setMethod(method);
          rpcServerMetricsModel.setProtocol(protocol);
          rpcServerMetricsModel.setInvokeType(invokeType);
          rpcServerMetricsModel.setCallerApp(callerApp);
          rpcServerMetricsModel.setElapsedTime(elapsedTime);
          rpcServerMetricsModel.setSuccess(success);
  
          return rpcServerMetricsModel;
      }
docs: create RpcServerLookoutModel
  @param request
  @param response
  @return