Package io.grpc
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerStreamTracer.Factorystatic classServerStreamTracer.ServerCallInfo<ReqT,RespT>A data class with info about the startedServerCall.
-
Constructor Summary
Constructors Constructor Description ServerStreamTracer()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContextfilterContext(Context context)Called before the interceptors and the call handlers and make changes to the Context object if needed.voidserverCallStarted(ServerCall<?,?> call)Deprecated.ImplementserverCallStarted(ServerCallInfo)instead.voidserverCallStarted(ServerStreamTracer.ServerCallInfo<?,?> callInfo)Called whenServerCallis created.-
Methods inherited from class io.grpc.StreamTracer
inboundMessage, inboundMessageRead, inboundUncompressedSize, inboundWireSize, outboundMessage, outboundMessageSent, outboundUncompressedSize, outboundWireSize, streamClosed
-
-
-
-
Method Detail
-
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 whenServerCallis created. This is for the tracer to access information about theServerCall. Called afterfilterContext(io.grpc.Context)and before the application call handler.
-
serverCallStarted
@Deprecated public void serverCallStarted(ServerCall<?,?> call)
Deprecated.ImplementserverCallStarted(ServerCallInfo)instead. This method will be removed in a future release of gRPC.Called whenServerCallis created. This is for the tracer to access information about theServerCall. Called afterfilterContext(io.grpc.Context)and before the application call handler.
-
-