/** * Capture the metrics for the given throwable. */ private <T extends Throwable> T captureExceptionMetrics(T t) { awsRequestMetrics.incrementCounterWith(Field.Exception) .addProperty(Field.Exception, t); if (t instanceof AmazonServiceException) { AmazonServiceException ase = (AmazonServiceException) t; if (RetryUtils.isThrottlingException(ase)) { awsRequestMetrics.incrementCounterWith(Field.ThrottleException) .addProperty(Field.ThrottleException, ase); } } return t; }
awsRequestMetrics.incrementCounterWith(Field.ThrottleException) .addProperty(Field.ThrottleException, exception);
/** * Capture the metrics for the given throwable. */ private <T extends Throwable> T captureExceptionMetrics(T t) { awsRequestMetrics.incrementCounterWith(Field.Exception) .addProperty(Field.Exception, t); if (t instanceof AmazonServiceException) { AmazonServiceException ase = (AmazonServiceException) t; if (RetryUtils.isThrottlingException(ase)) { awsRequestMetrics.incrementCounterWith(Field.ThrottleException) .addProperty(Field.ThrottleException, ase); } } return t; }
awsRequestMetrics.incrementCounterWith(Field.ThrottleException) .addProperty(Field.ThrottleException, exception);
/** * Capture the metrics for the given throwable. */ private <T extends Throwable> T captureExceptionMetrics(T t) { awsRequestMetrics.incrementCounterWith(Field.Exception) .addProperty(Field.Exception, t); if (t instanceof AmazonServiceException) { AmazonServiceException ase = (AmazonServiceException) t; if (RetryUtils.isThrottlingException(ase)) { awsRequestMetrics.incrementCounterWith(Field.ThrottleException) .addProperty(Field.ThrottleException, ase); } } return t; }
awsRequestMetrics.incrementCounterWith(Field.ThrottleException) .addProperty(Field.ThrottleException, exception);