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 class
ServerStreamTracer.Factory
static class
ServerStreamTracer.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 Context
filterContext(Context context)
Called before the interceptors and the call handlers and make changes to the Context object if needed.void
serverCallStarted(ServerCall<?,?> call)
Deprecated.ImplementserverCallStarted(ServerCallInfo)
instead.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
-
-
-
-
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 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 public void serverCallStarted(ServerCall<?,?> call)
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.
-
-