cschneider commented on code in PR #138:
URL: 
https://github.com/apache/sling-org-apache-sling-distribution-journal/pull/138#discussion_r1567407130


##########
src/main/java/org/apache/sling/distribution/journal/bookkeeper/SubscriberMetrics.java:
##########
@@ -112,7 +105,7 @@ public SubscriberMetrics(@Reference MetricsService 
metricsService) {
      * @return a Sling Metrics histogram
      */
     public Histogram getImportedPackageSize() {
-        return importedPackageSize;
+        return metricsService.histogram(getMetricName(IMPORTED_PACKAGE_SIZE, 
tags));

Review Comment:
   It surely does have some performance implications. I think though they are 
pretty small. 
   So of course it depends how often we call the metrics. If we would call them 
1000 times per second then the impact would be a problem. I think tough we 
rather call them like once per second on average.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@sling.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to