Package com.google.api.gax.tracing
Class TracedOperationInitialCallable<RequestT>
- java.lang.Object
-
- com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>
-
- com.google.api.gax.tracing.TracedUnaryCallable<RequestT,OperationSnapshot>
-
- com.google.api.gax.tracing.TracedOperationInitialCallable<RequestT>
-
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.
-
-
Constructor Summary
Constructors Constructor Description TracedOperationInitialCallable(UnaryCallable<RequestT,OperationSnapshot> innerCallable, ApiTracerFactory tracedFactory, SpanName spanName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiFuture<OperationSnapshot>futureCall(RequestT request, ApiCallContext context)Calls the wrappedUnaryCallablewithin the context of a new trace.-
Methods inherited from class com.google.api.gax.rpc.UnaryCallable
call, call, futureCall, withDefaultCallContext
-
-
-
-
Constructor Detail
-
TracedOperationInitialCallable
public TracedOperationInitialCallable(UnaryCallable<RequestT,OperationSnapshot> innerCallable, ApiTracerFactory tracedFactory, SpanName spanName)
-
-
Method Detail
-
futureCall
public ApiFuture<OperationSnapshot> futureCall(RequestT request, ApiCallContext context)
Description copied from class:TracedUnaryCallableCalls the wrappedUnaryCallablewithin the context of a new trace.- Overrides:
futureCallin classTracedUnaryCallable<RequestT,OperationSnapshot>- Parameters:
request- the request to send.context-ApiCallContextto make the call with.- Returns:
ApiFuturefor the call result
-
-