public class TracedOperationCallable<RequestT,ResponseT,MetadataT> extends OperationCallable<RequestT,ResponseT,MetadataT>
Inheritance
java.lang.Object > OperationCallable > TracedOperationCallable<RequestT,ResponseT,MetadataT>Type Parameters
Name | Description |
RequestT | |
ResponseT | |
MetadataT |
Constructors
TracedOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
public TracedOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
Name | Description |
innerCallable | OperationCallable<RequestT,ResponseT,MetadataT> |
tracerFactory | ApiTracerFactory |
spanName | SpanName |
Methods
cancel(String operationName, ApiCallContext context)
public ApiFuture<Void> cancel(String operationName, ApiCallContext context)
Wrap operation cancellation in a OperationType#Unary trace.
Name | Description |
operationName | String |
context | ApiCallContext |
Type | Description |
ApiFuture<Void> |
OperationCallable<RequestT,ResponseT,MetadataT>.cancel(String operationName, ApiCallContext context)
futureCall(RequestT request, ApiCallContext context)
public OperationFuture<ResponseT,MetadataT> futureCall(RequestT request, ApiCallContext context)
Wrap the initial start polling logical operations in a single parent trace using a OperationType#LongRunning ApiTracer.
Name | Description |
request | RequestT |
context | ApiCallContext |
Type | Description |
OperationFuture<ResponseT,MetadataT> |
OperationCallable<RequestT,ResponseT,MetadataT>.futureCall(RequestT request, ApiCallContext context)
resumeFutureCall(String operationName, ApiCallContext context)
public OperationFuture<ResponseT,MetadataT> resumeFutureCall(String operationName, ApiCallContext context)
Wrap the polling logical operations in a single parent trace using a OperationType#LongRunning ApiTracer.
Name | Description |
operationName | String |
context | ApiCallContext |
Type | Description |
OperationFuture<ResponseT,MetadataT> |