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
ConstructorsConstructorDescriptionTracedOperationInitialCallable(UnaryCallable<RequestT, OperationSnapshot> innerCallable, ApiTracerFactory tracedFactory, SpanName spanName) -
Method Summary
Modifier and TypeMethodDescriptionfutureCall(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 Details
-
TracedOperationInitialCallable
public TracedOperationInitialCallable(UnaryCallable<RequestT, OperationSnapshot> innerCallable, ApiTracerFactory tracedFactory, SpanName spanName)
-
-
Method Details
-
futureCall
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
-