public class TracedOperationInitialCallable<RequestT> extends TracedUnaryCallable<RequestT,OperationSnapshot>
Traces the initial RPC of a long running operation.
It will trace it like a child unary RPC and will also contribute to the parent tracer (created by TracedOperationCallable) the result of the call.
Inheritance
java.lang.Object > UnaryCallable > TracedUnaryCallable > TracedOperationInitialCallable<RequestT>Type Parameter
Name | Description |
RequestT |
Constructors
TracedOperationInitialCallable(UnaryCallable<RequestT,OperationSnapshot> innerCallable, ApiTracerFactory tracedFactory, SpanName spanName)
public TracedOperationInitialCallable(UnaryCallable<RequestT,OperationSnapshot> innerCallable, ApiTracerFactory tracedFactory, SpanName spanName)
Name | Description |
innerCallable | UnaryCallable<RequestT,OperationSnapshot> |
tracedFactory | ApiTracerFactory |
spanName | SpanName |
Methods
futureCall(RequestT request, ApiCallContext context)
public ApiFuture<OperationSnapshot> futureCall(RequestT request, ApiCallContext context)
Calls the wrapped UnaryCallable within the context of a new trace.
Name | Description |
request | RequestT |
context | ApiCallContext |
Type | Description |
com.google.api.core.ApiFuture<OperationSnapshot> |