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 ClassesModifier and TypeClassDescriptionstatic classprivate static final classDeprecated.static classA data class with info about the startedServerCall. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterContext(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 StreamTracer
inboundMessage, inboundMessageRead, inboundUncompressedSize, inboundWireSize, outboundMessage, outboundMessageSent, outboundUncompressedSize, outboundWireSize, streamClosed
-
Constructor Details
-
ServerStreamTracer
public ServerStreamTracer()
-
-
Method Details
-
filterContext
-
serverCallStarted
Called whenServerCallis created. This is for the tracer to access information about theServerCall. Called afterfilterContext(Context)and before the application call handler. -
serverCallStarted
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(Context)and before the application call handler.
-
serverCallStarted(ServerCall)is removed.