public class TracedUnaryCallable<RequestT,ResponseT> extends UnaryCallable<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> |