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.
-
-