public Stopper time() { return new Stopper(requestLatency.time(), applicationLatency.time()); } }
public Stopper time() { return new Stopper(requestLatency.time(), applicationLatency.time()); } }
private void stopAndRecordLatency() { // Should only be null in unit tests, // but this check is also here just in case there is some weird bug, we should not interfere with the proxying // just because it doesn't record metrics if (requestLatencyTiming != null) { requestLatencyTiming.stopAndRecord(); } else { LOG.warn("Attempted to stop timer and record latency when no timing had begun"); } } }
private void stopAndRecordLatency() { // Should only be null in unit tests, // but this check is also here just in case there is some weird bug, we should not interfere with the proxying // just because it doesn't record metrics if (requestLatencyTiming != null) { requestLatencyTiming.stopAndRecord(); } else { LOG.warn("Attempted to stop timer and record latency when no timing had begun"); } } }