Class TraceServiceGrpc.TraceServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<TraceServiceGrpc.TraceServiceStub>
-
- io.opencensus.proto.agent.trace.v1.TraceServiceGrpc.TraceServiceStub
-
- Enclosing class:
- TraceServiceGrpc
public static final class TraceServiceGrpc.TraceServiceStub extends io.grpc.stub.AbstractAsyncStub<TraceServiceGrpc.TraceServiceStub>
Service that can be used to push spans and configs between one Application instrumented with OpenCensus and an agent, or between an agent and a central collector or config service (in this case spans and configs are sent/received to/from multiple Applications).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TraceServiceGrpc.TraceServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)io.grpc.stub.StreamObserver<CurrentLibraryConfig>config(io.grpc.stub.StreamObserver<UpdatedLibraryConfig> responseObserver)After initialization, this RPC must be kept alive for the entire life of the application.io.grpc.stub.StreamObserver<ExportTraceServiceRequest>export(io.grpc.stub.StreamObserver<ExportTraceServiceResponse> responseObserver)For performance reasons, it is recommended to keep this RPC alive for the entire life of the application.
-
-
-
Method Detail
-
build
protected TraceServiceGrpc.TraceServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<TraceServiceGrpc.TraceServiceStub>
-
config
public io.grpc.stub.StreamObserver<CurrentLibraryConfig> config(io.grpc.stub.StreamObserver<UpdatedLibraryConfig> responseObserver)
After initialization, this RPC must be kept alive for the entire life of the application. The agent pushes configs down to applications via a stream.
-
export
public io.grpc.stub.StreamObserver<ExportTraceServiceRequest> export(io.grpc.stub.StreamObserver<ExportTraceServiceResponse> responseObserver)
For performance reasons, it is recommended to keep this RPC alive for the entire life of the application.
-
-