Class ServerStreamTracer

java.lang.Object
io.grpc.StreamTracer
io.grpc.ServerStreamTracer

@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2861") @ThreadSafe public abstract class ServerStreamTracer extends StreamTracer
Listens to events on a stream to collect metrics.
  • Constructor Details

    • ServerStreamTracer

      public ServerStreamTracer()
  • Method Details

    • filterContext

      public Context filterContext(Context context)
      Called before the interceptors and the call handlers and make changes to the Context object if needed.
    • serverCallStarted

      public void serverCallStarted(ServerStreamTracer.ServerCallInfo<?,?> callInfo)
      Called when ServerCall is created. This is for the tracer to access information about the ServerCall. Called after filterContext(Context) and before the application call handler.
    • serverCallStarted

      @Deprecated public void serverCallStarted(ServerCall<?,?> call)
      Deprecated.
      Implement serverCallStarted(ServerCallInfo) instead. This method will be removed in a future release of gRPC.
      Called when ServerCall is created. This is for the tracer to access information about the ServerCall. Called after filterContext(Context) and before the application call handler.