public static void logTimeoutMetrics(RouterRequestExpiryReason routerRequestExpiryReason,
      NonBlockingRouterMetrics routerMetrics, RequestInfo requestInfo) {
    if (routerRequestExpiryReason == RouterUtils.RouterRequestExpiryReason.ROUTER_SERVER_NETWORK_CLIENT_TIMEOUT) {
      routerMetrics.requestWaitTimeBeforeExpiryOnNetworkTimeoutMs.update(requestInfo.getNetworkTimeOutMs());
      routerMetrics.requestExpiryOnNetworkTimeoutCount.inc();
    } else if (routerRequestExpiryReason == RouterUtils.RouterRequestExpiryReason.ROUTER_REQUEST_TIMEOUT) {
      routerMetrics.requestExpiryOnFinalTimeoutCount.inc();
    }
  }
Update the metrics related to request time out.
@param routerRequestExpiryReason the reason for request expiry.
@param routerMetrics router metrics.
@param requestInfo of the request.
ambry-router/src/main/java/com/github/ambry/router/RouterUtils.java