ApiTracer.Scope| Modifier and Type | Method and Description |
|---|---|
void |
attemptCancelled()
Add an annotation that the attempt was cancelled by the user.
|
void |
attemptFailed(Throwable error,
org.threeten.bp.Duration delay)
Adds an annotation that the attempt failed, but another attempt will be made after the delay.
|
void |
attemptFailedRetriesExhausted(Throwable error)
Adds an annotation that the attempt failed and that no further attempts will be made because
retry limits have been reached.
|
void |
attemptPermanentFailure(Throwable error)
Adds an annotation that the attempt failed and that no further attempts will be made because
the last error was not retryable.
|
void |
attemptStarted(int attemptNumber)
Adds an annotation that an attempt is about to start.
|
void |
attemptSucceeded()
Adds an annotation that the attempt succeeded.
|
void |
batchRequestSent(long elementCount,
long requestSize)
Adds an annotation that a batch of writes has been flushed.
|
void |
connectionSelected(String id)
Annotates the operation with selected connection id from the
ChannelPool. |
static ApiTracer |
getInstance() |
ApiTracer.Scope |
inScope()
Asks the underlying implementation to install itself as a thread local.
|
void |
lroStartFailed(Throwable error)
Signals that the initial RPC for the long running operation failed.
|
void |
lroStartSucceeded()
Signals that the initial RPC successfully started the long running operation.
|
void |
operationCancelled()
Signals that the operation was cancelled by the user.
|
void |
operationFailed(Throwable error)
Signals that the overall operation has failed and no further attempts will be made.
|
void |
operationSucceeded()
Signals that the overall operation has finished successfully.
|
void |
requestSent()
Adds an annotation that a streaming request has been sent.
|
void |
responseReceived()
Adds an annotation that a streaming response has been received.
|
public static ApiTracer getInstance()
public ApiTracer.Scope inScope()
ApiTracerpublic void operationSucceeded()
ApiTraceroperationSucceeded in interface ApiTracerpublic void operationCancelled()
ApiTraceroperationCancelled in interface ApiTracerpublic void operationFailed(Throwable error)
ApiTraceroperationFailed in interface ApiTracererror - the final error that caused the operation to fail.public void connectionSelected(String id)
ApiTracerChannelPool.connectionSelected in interface ApiTracerid - the local connection identifier of the selected connection.public void attemptStarted(int attemptNumber)
ApiTracerattemptStarted in interface ApiTracerattemptNumber - the zero based sequential attempt number.public void attemptSucceeded()
ApiTracerattemptSucceeded in interface ApiTracerpublic void attemptCancelled()
ApiTracerattemptCancelled in interface ApiTracerpublic void attemptFailed(Throwable error, org.threeten.bp.Duration delay)
ApiTracerattemptFailed in interface ApiTracererror - the transient error that caused the attempt to fail.delay - the amount of time to wait before the next attempt will start.public void attemptFailedRetriesExhausted(Throwable error)
ApiTracerattemptFailedRetriesExhausted in interface ApiTracererror - the last error received before retries were exhausted.public void attemptPermanentFailure(Throwable error)
ApiTracerattemptPermanentFailure in interface ApiTracererror - the error that caused the final attempt to fail.public void lroStartFailed(Throwable error)
ApiTracerlroStartFailed in interface ApiTracererror - the error that caused the long running operation fail.public void lroStartSucceeded()
ApiTracerlroStartSucceeded in interface ApiTracerpublic void responseReceived()
ApiTracerresponseReceived in interface ApiTracerpublic void requestSent()
ApiTracerrequestSent in interface ApiTracerpublic void batchRequestSent(long elementCount,
long requestSize)
ApiTracerbatchRequestSent in interface ApiTracerelementCount - the number of elements in the batch.requestSize - the size of the batch in bytes.