public class GRPCAgentProtoClient extends BaseGrpcClient<com.expedia.open.tracing.Span>
| Modifier and Type | Class and Description |
|---|---|
static class |
GRPCAgentProtoClient.Builder |
BaseGrpcClient.GRPCAgentClientStreamObserverchannel, closeExceptionCounter, closeInterruptedCounter, closeTimeoutCounter, closeTimer, flushCounter, observer, sendExceptionCounter, sendTimer, shutdownTimeoutMS, stub| Constructor and Description |
|---|
GRPCAgentProtoClient(Metrics metrics,
io.grpc.ManagedChannel channel,
com.expedia.open.tracing.agent.api.SpanAgentGrpc.SpanAgentStub stub,
io.grpc.stub.StreamObserver<com.expedia.open.tracing.agent.api.DispatchResult> observer,
long shutdownTimeoutMS) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
send(com.expedia.open.tracing.Span span)
All clients should control how they send spans to somewhere
|
close, flushpublic GRPCAgentProtoClient(Metrics metrics, io.grpc.ManagedChannel channel, com.expedia.open.tracing.agent.api.SpanAgentGrpc.SpanAgentStub stub, io.grpc.stub.StreamObserver<com.expedia.open.tracing.agent.api.DispatchResult> observer, long shutdownTimeoutMS)
public boolean send(com.expedia.open.tracing.Span span)
throws ClientException
Clientspan - Span to send off to the endpointtrue if the operation was successful,
false if it was unsuccessfulClientException - throws a ClientException if an exception occuredCopyright © 2019. All rights reserved.