@ThreadSafe public final class StatsTraceContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static StatsTraceContext |
NOOP |
| Modifier and Type | Method and Description |
|---|---|
void |
clientInboundHeaders()
See
ClientStreamTracer.inboundHeaders(). |
void |
clientInboundTrailers(io.grpc.Metadata trailers)
See
ClientStreamTracer.inboundTrailers(io.grpc.Metadata). |
void |
clientOutboundHeaders()
See
ClientStreamTracer.outboundHeaders(). |
List<io.grpc.StreamTracer> |
getTracersForTest()
Returns a copy of the tracer list.
|
void |
inboundMessage(int seqNo)
See
StreamTracer.inboundMessage(int). |
void |
inboundMessageRead(int seqNo,
long optionalWireSize,
long optionalUncompressedSize)
See
StreamTracer.inboundMessageRead(int, long, long). |
void |
inboundUncompressedSize(long bytes)
See
StreamTracer.inboundUncompressedSize(long). |
void |
inboundWireSize(long bytes)
See
StreamTracer.inboundWireSize(long). |
static StatsTraceContext |
newClientContext(io.grpc.CallOptions callOptions,
io.grpc.Attributes transportAttrs,
io.grpc.Metadata headers)
Factory method for the client-side.
|
static StatsTraceContext |
newServerContext(List<? extends io.grpc.ServerStreamTracer.Factory> factories,
String fullMethodName,
io.grpc.Metadata headers)
Factory method for the server-side.
|
void |
outboundMessage(int seqNo)
See
StreamTracer.outboundMessage(int). |
void |
outboundMessageSent(int seqNo,
long optionalWireSize,
long optionalUncompressedSize)
See
StreamTracer.outboundMessageSent(int, long, long). |
void |
outboundUncompressedSize(long bytes)
See
StreamTracer.outboundUncompressedSize(long). |
void |
outboundWireSize(long bytes)
See
StreamTracer.outboundWireSize(long). |
void |
serverCallStarted(io.grpc.ServerStreamTracer.ServerCallInfo<?,?> callInfo)
See
ServerStreamTracer.serverCallStarted(io.grpc.ServerStreamTracer.ServerCallInfo<?, ?>). |
<ReqT,RespT> |
serverFilterContext(io.grpc.Context context)
See
ServerStreamTracer.filterContext(io.grpc.Context). |
void |
streamClosed(io.grpc.Status status)
See
StreamTracer.streamClosed(io.grpc.Status). |
public static final StatsTraceContext NOOP
public static StatsTraceContext newClientContext(io.grpc.CallOptions callOptions, io.grpc.Attributes transportAttrs, io.grpc.Metadata headers)
public static StatsTraceContext newServerContext(List<? extends io.grpc.ServerStreamTracer.Factory> factories, String fullMethodName, io.grpc.Metadata headers)
public List<io.grpc.StreamTracer> getTracersForTest()
public void clientOutboundHeaders()
ClientStreamTracer.outboundHeaders(). For client-side only.
Transport-specific, thus should be called by transport implementations.
public void clientInboundHeaders()
ClientStreamTracer.inboundHeaders(). For client-side only.
Called from abstract stream implementations.
public void clientInboundTrailers(io.grpc.Metadata trailers)
ClientStreamTracer.inboundTrailers(io.grpc.Metadata). For client-side only.
Called from abstract stream implementations.
public <ReqT,RespT> io.grpc.Context serverFilterContext(io.grpc.Context context)
ServerStreamTracer.filterContext(io.grpc.Context). For server-side only.
Called from ServerImpl.
public void serverCallStarted(io.grpc.ServerStreamTracer.ServerCallInfo<?,?> callInfo)
ServerStreamTracer.serverCallStarted(io.grpc.ServerStreamTracer.ServerCallInfo<?, ?>). For server-side only.
Called from ServerImpl.
public void streamClosed(io.grpc.Status status)
StreamTracer.streamClosed(io.grpc.Status). This may be called multiple times, and only the first
value will be taken.
Called from abstract stream implementations.
public void outboundMessage(int seqNo)
StreamTracer.outboundMessage(int).
Called from Framer.
public void inboundMessage(int seqNo)
StreamTracer.inboundMessage(int).
Called from MessageDeframer.
public void outboundMessageSent(int seqNo,
long optionalWireSize,
long optionalUncompressedSize)
StreamTracer.outboundMessageSent(int, long, long).
Called from Framer.
public void inboundMessageRead(int seqNo,
long optionalWireSize,
long optionalUncompressedSize)
StreamTracer.inboundMessageRead(int, long, long).
Called from MessageDeframer.
public void outboundUncompressedSize(long bytes)
StreamTracer.outboundUncompressedSize(long).
Called from Framer.
public void outboundWireSize(long bytes)
StreamTracer.outboundWireSize(long).
Called from Framer.
public void inboundUncompressedSize(long bytes)
StreamTracer.inboundUncompressedSize(long).
Called from MessageDeframer.
public void inboundWireSize(long bytes)
StreamTracer.inboundWireSize(long).
Called from MessageDeframer.