public class TracedOperationInitialCallable<RequestT> extends TracedUnaryCallable<RequestT,OperationSnapshot>
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.
| Constructor and Description |
|---|
TracedOperationInitialCallable(UnaryCallable<RequestT,OperationSnapshot> innerCallable,
ApiTracerFactory tracedFactory,
SpanName spanName) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<OperationSnapshot> |
futureCall(RequestT request,
ApiCallContext context)
Calls the wrapped
UnaryCallable within the context of a new trace. |
call, call, futureCall, withDefaultCallContextpublic TracedOperationInitialCallable(UnaryCallable<RequestT,OperationSnapshot> innerCallable, ApiTracerFactory tracedFactory, SpanName spanName)
public com.google.api.core.ApiFuture<OperationSnapshot> futureCall(RequestT request, ApiCallContext context)
TracedUnaryCallableUnaryCallable within the context of a new trace.futureCall in class TracedUnaryCallable<RequestT,OperationSnapshot>request - the request to send.context - ApiCallContext to make the call with.ApiFuture for the call result