Class TracedOperationInitialCallable<RequestT> (2.59.0)

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)
Parameters
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.

Parameters
Name Description
request RequestT
context ApiCallContext
Returns
Type Description
ApiFuture<OperationSnapshot>
Overrides