Package io.grpc.internal
Class StatsTraceContext
java.lang.Object
io.grpc.internal.StatsTraceContext
The stats and tracing information for a stream.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
clientInboundHeaders
(Metadata headers) void
clientInboundTrailers
(Metadata trailers) void
Returns a copy of the tracer list.void
inboundMessage
(int seqNo) void
inboundMessageRead
(int seqNo, long optionalWireSize, long optionalUncompressedSize) void
inboundUncompressedSize
(long bytes) void
inboundWireSize
(long bytes) static StatsTraceContext
newClientContext
(ClientStreamTracer[] tracers, Attributes transportAtts, Metadata headers) Factory method for the client-side.static StatsTraceContext
newServerContext
(List<? extends ServerStreamTracer.Factory> factories, String fullMethodName, Metadata headers) Factory method for the server-side.void
outboundMessage
(int seqNo) void
outboundMessageSent
(int seqNo, long optionalWireSize, long optionalUncompressedSize) void
outboundUncompressedSize
(long bytes) void
outboundWireSize
(long bytes) void
serverCallStarted
(ServerStreamTracer.ServerCallInfo<?, ?> callInfo) <ReqT,
RespT>
ContextserverFilterContext
(Context context) void
streamClosed
(Status status)
-
Field Details
-
NOOP
-
-
Method Details
-
newClientContext
public static StatsTraceContext newClientContext(ClientStreamTracer[] tracers, Attributes transportAtts, Metadata headers) Factory method for the client-side. -
newServerContext
public static StatsTraceContext newServerContext(List<? extends ServerStreamTracer.Factory> factories, String fullMethodName, Metadata headers) Factory method for the server-side. -
getTracersForTest
Returns a copy of the tracer list. -
clientOutboundHeaders
public void clientOutboundHeaders()SeeClientStreamTracer.outboundHeaders()
. For client-side only.Transport-specific, thus should be called by transport implementations.
-
clientInboundHeaders
SeeClientStreamTracer.inboundHeaders()
. For client-side only.Called from abstract stream implementations.
-
clientInboundTrailers
SeeClientStreamTracer.inboundTrailers(io.grpc.Metadata)
. For client-side only.Called from abstract stream implementations.
-
serverFilterContext
SeeServerStreamTracer.filterContext(io.grpc.Context)
. For server-side only.Called from
ServerImpl
. -
serverCallStarted
SeeServerStreamTracer.serverCallStarted(io.grpc.ServerStreamTracer.ServerCallInfo<?, ?>)
. For server-side only.Called from
ServerImpl
. -
streamClosed
SeeStreamTracer.streamClosed(io.grpc.Status)
. This may be called multiple times, and only the first value will be taken.Called from abstract stream implementations.
-
outboundMessage
public void outboundMessage(int seqNo) SeeStreamTracer.outboundMessage(int)
.Called from
Framer
. -
inboundMessage
public void inboundMessage(int seqNo) SeeStreamTracer.inboundMessage(int)
.Called from
MessageDeframer
. -
outboundMessageSent
public void outboundMessageSent(int seqNo, long optionalWireSize, long optionalUncompressedSize) SeeStreamTracer.outboundMessageSent(int, long, long)
.Called from
Framer
. -
inboundMessageRead
public void inboundMessageRead(int seqNo, long optionalWireSize, long optionalUncompressedSize) SeeStreamTracer.inboundMessageRead(int, long, long)
.Called from
MessageDeframer
. -
outboundUncompressedSize
public void outboundUncompressedSize(long bytes) SeeStreamTracer.outboundUncompressedSize(long)
.Called from
Framer
. -
outboundWireSize
public void outboundWireSize(long bytes) SeeStreamTracer.outboundWireSize(long)
.Called from
Framer
. -
inboundUncompressedSize
public void inboundUncompressedSize(long bytes) SeeStreamTracer.inboundUncompressedSize(long)
.Called from
MessageDeframer
. -
inboundWireSize
public void inboundWireSize(long bytes) SeeStreamTracer.inboundWireSize(long)
.Called from
MessageDeframer
.
-