private void logMetricIfThrottleCandidate(QuotaName quotaName, String resourceId) {
    try {
      if (quotaSource.getSystemResourceUsage(quotaName) > maxFrontendCuUsageToAllowExceed) {
        if (quotaMetrics.perQuotaResourceWouldBeThrottledMap.containsKey(resourceId)) {
          quotaMetrics.perQuotaResourceWouldBeThrottledMap.get(resourceId).inc();
        }
      }
    } catch (QuotaException quotaException) {
      // this is unlikely, but not logging here because it can potentially overwhelm logs.
    }
  }
Logs metrics if the request would have been throttled. Use these metrics to check potential throttling candidates
when running in {@link com.github.ambry.quota.QuotaMode#TRACKING} mode.
@param quotaName {@link QuotaName} for which check is being made.
@param resourceId resourceId for which metric will be logged.
ambry-quota/src/main/java/com/github/ambry/quota/capacityunit/AmbryCUQuotaEnforcer.java