Class TraceServiceGrpc.TraceServiceStub (2.7.0)

public static final class TraceServiceGrpc.TraceServiceStub extends AbstractAsyncStub<TraceServiceGrpc.TraceServiceStub>

This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. A single trace may contain span(s) from multiple services.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > TraceServiceGrpc.TraceServiceStub

Methods

batchWriteSpans(BatchWriteSpansRequest request, StreamObserver<Empty> responseObserver)

public void batchWriteSpans(BatchWriteSpansRequest request, StreamObserver<Empty> responseObserver)

Sends new spans to new or existing traces. You cannot update existing spans.

Parameters
NameDescription
requestBatchWriteSpansRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

build(Channel channel, CallOptions callOptions)

protected TraceServiceGrpc.TraceServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
TraceServiceGrpc.TraceServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createSpan(Span request, StreamObserver<Span> responseObserver)

public void createSpan(Span request, StreamObserver<Span> responseObserver)

Creates a new span.

Parameters
NameDescription
requestSpan
responseObserverio.grpc.stub.StreamObserver<Span>