/** {@inheritDoc} */ @Override public void attemptSucceeded() { Map<String, AttributeValue> attributes = baseAttemptAttributes(); span.addAnnotation("Attempt succeeded", attributes); }
@Override public void attemptCancelled() { Map<String, AttributeValue> attributes = baseAttemptAttributes(); span.addAnnotation("Attempt cancelled", attributes); }
/** {@inheritDoc} */ @Override public void attemptSucceeded() { Map<String, AttributeValue> attributes = baseAttemptAttributes(); span.addAnnotation("Attempt succeeded", attributes); }
@Override public void attemptCancelled() { Map<String, AttributeValue> attributes = baseAttemptAttributes(); span.addAnnotation("Attempt cancelled", attributes); }
/** {@inheritDoc} */ @Override public void attemptPermanentFailure(Throwable error) { Map<String, AttributeValue> attributes = baseAttemptAttributes(); populateError(attributes, error); span.addAnnotation("Attempt failed, error not retryable", attributes); }
/** {@inheritDoc} */ @Override public void attemptFailedRetriesExhausted(Throwable error) { Map<String, AttributeValue> attributes = baseAttemptAttributes(); populateError(attributes, error); span.addAnnotation("Attempts exhausted", attributes); }
/** {@inheritDoc} */ @Override public void attemptFailedRetriesExhausted(Throwable error) { Map<String, AttributeValue> attributes = baseAttemptAttributes(); populateError(attributes, error); span.addAnnotation("Attempts exhausted", attributes); }
/** {@inheritDoc} */ @Override public void attemptPermanentFailure(Throwable error) { Map<String, AttributeValue> attributes = baseAttemptAttributes(); populateError(attributes, error); span.addAnnotation("Attempt failed, error not retryable", attributes); }
/** {@inheritDoc} */ @Override public void attemptFailed(Throwable error, Duration delay) { Map<String, AttributeValue> attributes = baseAttemptAttributes(); attributes.put("delay ms", AttributeValue.longAttributeValue(delay.toMillis())); populateError(attributes, error); String msg = error != null ? "Attempt failed" : "Operation incomplete"; span.addAnnotation(msg + ", scheduling next attempt", attributes); }
/** {@inheritDoc} */ @Override public void attemptFailed(Throwable error, Duration delay) { Map<String, AttributeValue> attributes = baseAttemptAttributes(); attributes.put("delay ms", AttributeValue.longAttributeValue(delay.toMillis())); populateError(attributes, error); String msg = error != null ? "Attempt failed" : "Operation incomplete"; span.addAnnotation(msg + ", scheduling next attempt", attributes); }