List of usage examples for com.amazonaws.util AWSServiceMetrics HttpClientGetConnectionTime
AWSServiceMetrics HttpClientGetConnectionTime
To view the source code for com.amazonaws.util AWSServiceMetrics HttpClientGetConnectionTime.
Click Source Link
From source file:com.netflix.spectator.aws.SpectatorServiceMetricCollector.java
License:Apache License
@Override public void collectLatency(ServiceLatencyProvider provider) { if (provider.getServiceMetricType() == AWSServiceMetrics.HttpClientGetConnectionTime) { long nanos = (long) (provider.getDurationMilli() * 1e6); clientGetConnectionTime.record(nanos, TimeUnit.NANOSECONDS); }//from w w w . j a v a 2 s . c o m }