aiyanbo edited a comment on issue #3142: Java agent cannot trace gRPC stream 
service
URL: https://github.com/apache/skywalking/issues/3142#issuecomment-516245715
 
 
   **proto**
   
   ```
   import "google/protobuf/empty.proto";
   
   service ProjectService {
     rpc GetProjects(google.protobuf.Empty) returns (stream Project) {
     }
   }
   
   message Project {
     int64 id = 1;
     string name = 2;
   }
   ```
   **client**
   
   ```
   ManagedChannel channel = ...
   ProjectServiceGrpc.ProjectServiceStub stub = 
ProjectServiceGrpc.newStub(channel)
   Empty request = Empty.newBuilder().build();
   StreamObserver[Project] observer = ...
   stub.getProjects(request, observer);
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to