@BetaApi(value="The surface for tracing is not stable and might change in the future") @InternalApi(value="For internal use by google-cloud-java clients only") public class TracedUnaryCallable<RequestT,ResponseT> extends UnaryCallable<RequestT,ResponseT>
ApiTracer.
For internal use only.
| Constructor and Description |
|---|
TracedUnaryCallable(UnaryCallable<RequestT,ResponseT> innerCallable,
ApiTracerFactory tracerFactory,
SpanName spanName) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<ResponseT> |
futureCall(RequestT request,
ApiCallContext context)
Calls the wrapped
UnaryCallable within the context of a new trace. |
call, call, futureCall, withDefaultCallContextpublic TracedUnaryCallable(UnaryCallable<RequestT,ResponseT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)
public com.google.api.core.ApiFuture<ResponseT> futureCall(RequestT request, ApiCallContext context)
UnaryCallable within the context of a new trace.futureCall in class UnaryCallable<RequestT,ResponseT>request - the request to send.context - ApiCallContext to make the call with.ApiFuture for the call result