Class TraceServiceGrpc.TraceServiceFutureStub (2.54.0)

public static final class TraceServiceGrpc.TraceServiceFutureStub extends AbstractFutureStub<TraceServiceGrpc.TraceServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service TraceService.

Service for collecting and viewing traces and spans within a trace. A trace is a collection of spans corresponding to a single operation or a set of operations in an application. A span is an individual timed event which forms a node of the trace tree. A single trace can contain spans from multiple services.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > TraceServiceGrpc.TraceServiceFutureStub

Methods

batchWriteSpans(BatchWriteSpansRequest request)

public ListenableFuture<Empty> batchWriteSpans(BatchWriteSpansRequest request)

Batch writes new spans to new or existing traces. You cannot update existing spans.

Parameter
Name Description
request BatchWriteSpansRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

build(Channel channel, CallOptions callOptions)

protected TraceServiceGrpc.TraceServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
TraceServiceGrpc.TraceServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createSpan(Span request)

public ListenableFuture<Span> createSpan(Span request)

Creates a new span.

Parameter
Name Description
request Span
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Span>