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 ClassesModifier and TypeClassDescriptionstatic class
static class
A 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.void
serverCallStarted
(ServerCall<?, ?> call) Deprecated.void
serverCallStarted
(ServerStreamTracer.ServerCallInfo<?, ?> callInfo) Called whenServerCall
is created.Methods inherited from class io.grpc.StreamTracer
inboundMessage, inboundMessageRead, inboundUncompressedSize, inboundWireSize, outboundMessage, outboundMessageSent, outboundUncompressedSize, outboundWireSize, streamClosed
-
Constructor Details
-
ServerStreamTracer
public ServerStreamTracer()
-
-
Method Details
-
filterContext
Called before the interceptors and the call handlers and make changes to the Context object if needed. -
serverCallStarted
Called whenServerCall
is created. This is for the tracer to access information about theServerCall
. Called afterfilterContext(io.grpc.Context)
and before the application call handler. -
serverCallStarted
Deprecated.ImplementserverCallStarted(ServerCallInfo)
instead. This method will be removed in a future release of gRPC.Called whenServerCall
is created. This is for the tracer to access information about theServerCall
. Called afterfilterContext(io.grpc.Context)
and before the application call handler.
-
serverCallStarted(ServerCallInfo)
instead.