public void reportHttpRequest(String clientVersion) {
        if (clientVersion != null) {
            try {
                Point point = versionPointCache.get(clientVersion, () -> new Point(Map.of("client-version", clientVersion)));
                feedRequests.add(point);
            } catch (ExecutionException e) { // When Point constructor throws an exception
                throw new RuntimeException(e);
            }
        } else {
            feedRequests.add();
        }
    }
This class reports metrics for feed operations by APIs that use documentapi.

@author freva
vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentApiMetrics.java