LatencyMetrics: simplify the URL

The latency metrics holds a single counter, so there is no need to add
the total_latency to the url it is pointed to.

Removing it, can shorten the url in the API definitions.
This commit is contained in:
Amnon Heiman 2015-06-30 18:31:44 +03:00
parent ae6021233f
commit baf7d101d1

View File

@ -98,7 +98,7 @@ public class LatencyMetrics {
latency = APIMetrics.newTimer( latency = APIMetrics.newTimer(
factory.createMetricName(namePrefix + "Latency"), factory.createMetricName(namePrefix + "Latency"),
TimeUnit.MICROSECONDS, TimeUnit.SECONDS); TimeUnit.MICROSECONDS, TimeUnit.SECONDS);
totalLatency = APIMetrics.newCounter(url + "total_latency", totalLatency = APIMetrics.newCounter(url,
factory.createMetricName(namePrefix + "TotalLatency")); factory.createMetricName(namePrefix + "TotalLatency"));
} }