ContainerMetrics getContainerMetrics(String accountName, String containerName, boolean shouldIncludeAccountMetrics) {
    return instantiatedContainerMetrics.computeIfAbsent(
        new Pair<>(accountName, containerName), k -> {
          boolean isGetRequest = containerMetricsEnabledGetRequestTypes.contains(requestType);
          AccountMetrics accountMetrics =
              shouldIncludeAccountMetrics ? instantiatedAccountMetrics.computeIfAbsent(accountName,
                  ak -> new AccountMetrics(accountName, requestType, metricRegistry, isGetRequest)) : null;
          return new ContainerMetrics(accountName, containerName, requestType, metricRegistry, isGetRequest,
              accountMetrics);
        });
  }
Get a {@link ContainerMetrics} instance for the specified container for this operation type. If a request of this
operation type has not been made for the specified container since the frontend was started, new metrics will be
created.

@param accountName                the account name.
@param containerName              the container name.
@param shouldIncludeAccountMetrics True to include account metrics in container metrics
@return the {@link ContainerMetrics} instance, or {@code null} if container metrics are disabled for this type of
operation.
ambry-frontend/src/main/java/com/github/ambry/frontend/RestRequestMetricsGroup.java