Class TraceSegmentReportServiceGrpc.TraceSegmentReportServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<TraceSegmentReportServiceGrpc.TraceSegmentReportServiceStub>
org.apache.skywalking.apm.network.language.agent.v3.TraceSegmentReportServiceGrpc.TraceSegmentReportServiceStub
- Enclosing class:
- TraceSegmentReportServiceGrpc
public static final class TraceSegmentReportServiceGrpc.TraceSegmentReportServiceStub
extends io.grpc.stub.AbstractAsyncStub<TraceSegmentReportServiceGrpc.TraceSegmentReportServiceStub>
Define a trace segment report service. All language agents or any trace collecting component, could use this service to send span collection to the SkyWalking OAP backend.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) io.grpc.stub.StreamObserver<SegmentObject>Recommended trace segment report channel.voidcollectInSync(SegmentCollection request, io.grpc.stub.StreamObserver<Commands> responseObserver) An alternative for trace report by using gRPC unary This is provided for some 3rd-party integration, if and only if they prefer the unary mode somehow.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
protected TraceSegmentReportServiceGrpc.TraceSegmentReportServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<TraceSegmentReportServiceGrpc.TraceSegmentReportServiceStub>
-
collect
public io.grpc.stub.StreamObserver<SegmentObject> collect(io.grpc.stub.StreamObserver<Commands> responseObserver) Recommended trace segment report channel. gRPC streaming provides better performance. All language agents should choose this.
-
collectInSync
public void collectInSync(SegmentCollection request, io.grpc.stub.StreamObserver<Commands> responseObserver) An alternative for trace report by using gRPC unary This is provided for some 3rd-party integration, if and only if they prefer the unary mode somehow. The performance of SkyWalking OAP server would be very similar with streaming report, the performance of the network and client side are affected
-