Class TracedOperationCallable<RequestT,ResponseT,MetadataT> (2.15.0)

publicclass TracedOperationCallable<RequestT,ResponseT,MetadataT>extendsOperationCallable<RequestT,ResponseT,MetadataT>

This callable wraps a OperationCallable in a ApiTracer.

For internal use only.

Inheritance

java.lang.Object > OperationCallable > TracedOperationCallable<RequestT,ResponseT,MetadataT>

Type Parameters

Name Description
RequestT
ResponseT
MetadataT

Constructors

TracedOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT> innerCallable, ApiTracerFactory tracerFactory, SpanName spanName)

publicTracedOperationCallable(OperationCallable<RequestT,ResponseT,MetadataT>innerCallable,ApiTracerFactorytracerFactory,SpanNamespanName)
Parameters
Name Description
innerCallable OperationCallable<RequestT,ResponseT,MetadataT>
tracerFactory ApiTracerFactory
spanName SpanName

Methods

cancel(String operationName, ApiCallContext context)

publicApiFuture<Void>cancel(StringoperationName,ApiCallContextcontext)

Wrap operation cancellation in a OperationType#Unary trace.

Parameters
Name Description
operationName String
context ApiCallContext
Returns
Type Description
com.google.api.core.ApiFuture<Void>
Overrides

futureCall(RequestT request, ApiCallContext context)

publicOperationFuture<ResponseT,MetadataT>futureCall(RequestTrequest,ApiCallContextcontext)

Wrap the initial start polling logical operations in a single parent trace using a OperationType#LongRunning ApiTracer.

Parameters
Name Description
request RequestT
context ApiCallContext
Returns
Type Description
OperationFuture<ResponseT,MetadataT>
Overrides

resumeFutureCall(String operationName, ApiCallContext context)

publicOperationFuture<ResponseT,MetadataT>resumeFutureCall(StringoperationName,ApiCallContextcontext)

Wrap the polling logical operations in a single parent trace using a OperationType#LongRunning ApiTracer.

Parameters
Name Description
operationName String
context ApiCallContext
Returns
Type Description
OperationFuture<ResponseT,MetadataT>
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.