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:
parent
ae6021233f
commit
baf7d101d1
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user