Class TraceServiceGrpc (2.15.0)

public final class TraceServiceGrpc

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 > TraceServiceGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
TypeDescription
String

Static Methods

bindService(TraceServiceGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(TraceServiceGrpc.AsyncService service)
Parameter
NameDescription
serviceTraceServiceGrpc.AsyncService
Returns
TypeDescription
io.grpc.ServerServiceDefinition

getBatchWriteSpansMethod()

public static MethodDescriptor<BatchWriteSpansRequest,Empty> getBatchWriteSpansMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<BatchWriteSpansRequest,Empty>

getCreateSpanMethod()

public static MethodDescriptor<Span,Span> getCreateSpanMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<Span,Span>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
TypeDescription
io.grpc.ServiceDescriptor

newBlockingStub(Channel channel)

public static TraceServiceGrpc.TraceServiceBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
TraceServiceGrpc.TraceServiceBlockingStub

newFutureStub(Channel channel)

public static TraceServiceGrpc.TraceServiceFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
TraceServiceGrpc.TraceServiceFutureStub

newStub(Channel channel)

public static TraceServiceGrpc.TraceServiceStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
TraceServiceGrpc.TraceServiceStub