Class TracedOperationInitialCallable<RequestT> (2.12.2)

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

NameDescription
RequestT

Constructors

TracedOperationInitialCallable(UnaryCallable<RequestT,OperationSnapshot> innerCallable, ApiTracerFactory tracedFactory, SpanName spanName)

public TracedOperationInitialCallable(UnaryCallable<RequestT,OperationSnapshot> innerCallable, ApiTracerFactory tracedFactory, SpanName spanName)
Parameters
NameDescription
innerCallableUnaryCallable<RequestT,OperationSnapshot>
tracedFactoryApiTracerFactory
spanNameSpanName

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.

Parameters
NameDescription
requestRequestT
contextApiCallContext
Returns
TypeDescription
com.google.api.core.ApiFuture<OperationSnapshot>
Overrides