GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Am I still able to intercept exceptions on retry to emit client side metrics? · Issue #2144 · aws/aws-sdk-java-v2 Closed Labels closing-soonThis issue will close in 4 days unless further comments are made.guidanceQuestion that needs advice or information. DescriptionDescribe the issueIn v1 I was able to add a lambda to intercept exceptions in client and emit metrics if desired, I'm struggling to do the same with v2. import com.amazonaws.retry.PredefinedRetryPolicies; import com.amazonaws.retry.RetryPolicy; private RetryPolicy buildRetryPolicy() { return new RetryPolicy( (originalRequest, exception, retriesAttempted) -> { LOGGER.info("AWS failed with exception {}", exception.getClass()); if (exception instanceof ProvisionedThroughputExceededException) { metrics.getCounter(PROVIDER_EXCEPTION,Map.of("exception", "ProvisionedThroughputExceededException")).inc(); } return PredefinedRetryPolicies.DEFAULT_RETRY_CONDITION.shouldRetry( originalRequest, exception, retriesAttempted); }, PredefinedRetryPolicies.DEFAULT_BACKOFF_STRATEGY, PredefinedRetryPolicies.DEFAULT_MAX_ERROR_RETRY, false); } Your Environment
Activity
MetadataMetadataAssigneesLabelsclosing-soonThis issue will close in 4 days unless further comments are made.guidanceQuestion that needs advice or information. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |