Class TracedUnaryCallable<RequestT,ResponseT> (2.72.1)

publicclass TracedUnaryCallable<RequestT,ResponseT>extendsUnaryCallable<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)

publicTracedUnaryCallable(UnaryCallable<RequestT,ResponseT>innerCallable,ApiTracerFactorytracerFactory,SpanNamespanName)
Parameters
Name Description
innerCallable UnaryCallable<RequestT,ResponseT>
tracerFactory ApiTracerFactory
spanName SpanName

Methods

futureCall(RequestT request, ApiCallContext context)

publicApiFuture<ResponseT>futureCall(RequestTrequest,ApiCallContextcontext)

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.