Class TracedUnaryCallable<RequestT,ResponseT> (2.59.0)

public class TracedUnaryCallable<RequestT,ResponseT> extends UnaryCallable<RequestT,ResponseT>

This callable wraps a callable chain in a ApiTracer.

For internal use only.

Inheritance

java.lang.Object > UnaryCallable > TracedUnaryCallable<RequestT,ResponseT>

Type Parameters

Name Description
RequestT
ResponseT

Constructors

TracedUnaryCallable(UnaryCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)

public TracedUnaryCallable(UnaryCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
Parameters
Name Description
innerCallable UnaryCallable<RequestT,ResponseT>
tracerFactory ApiTracerFactory
spanName SpanName

Methods

futureCall(RequestT request, ApiCallContext context)

public ApiFuture<ResponseT> futureCall(RequestT request, ApiCallContext context)

Calls the wrapped UnaryCallable within the context of a new trace.

Parameters
Name Description
request RequestT

the request to send.

context ApiCallContext

ApiCallContext to make the call with.

Returns
Type Description
ApiFuture<ResponseT>
Overrides