diff --git a/gax-java/gax/src/main/java/com/google/api/gax/tracing/BaseApiTracer.java b/gax-java/gax/src/main/java/com/google/api/gax/tracing/BaseApiTracer.java index 73ead433ec..8feb1286d2 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/tracing/BaseApiTracer.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/tracing/BaseApiTracer.java @@ -29,6 +29,8 @@ */ package com.google.api.gax.tracing; +import static com.google.api.gax.util.TimeConversionUtils.toThreetenDuration; + import com.google.api.core.InternalApi; import com.google.api.core.ObsoleteApi; @@ -105,7 +107,8 @@ public void attemptCancelled() { @Override public void attemptFailedDuration(Throwable error, java.time.Duration delay) { - // noop + // noop via attemptFailed(Throwable error, org.threeten.Duration) + attemptFailed(error, toThreetenDuration(delay)); } /** @@ -113,7 +116,7 @@ public void attemptFailedDuration(Throwable error, java.time.Duration delay) { * instead. */ @Override - @ObsoleteApi("Use attemptFailed(Throwable, java.time.Duration) instead") + @ObsoleteApi("Use attemptFailedDuration(Throwable, java.time.Duration) instead") public void attemptFailed(Throwable error, org.threeten.bp.Duration delay) { // noop }