Class TraceSegmentReportServiceGrpc.TraceSegmentReportServiceImplBase

java.lang.Object
org.apache.skywalking.apm.network.language.agent.v3.compat.TraceSegmentReportServiceGrpc.TraceSegmentReportServiceImplBase
All Implemented Interfaces:
io.grpc.BindableService
Enclosing class:
TraceSegmentReportServiceGrpc

public abstract static class TraceSegmentReportServiceGrpc.TraceSegmentReportServiceImplBase extends Object implements io.grpc.BindableService
 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.
 
  • Constructor Details

    • TraceSegmentReportServiceImplBase

      public TraceSegmentReportServiceImplBase()
  • Method Details

    • 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
       
    • bindService

      public final io.grpc.ServerServiceDefinition bindService()
      Specified by:
      bindService in interface io.grpc.BindableService