Class RpcMeasureConstants
java.lang.Object
io.opencensus.contrib.grpc.metrics.RpcMeasureConstants
Constants for collecting rpc stats.
- Since:
- 0.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringUnit string for byte.private static final StringUnit string for count.static final TagKeyTag key that represents a client gRPC method.static final Measure.MeasureDoubleMeasurefor total bytes received per method, recorded real-time as bytes are received.static final Measure.MeasureDoubleMeasurefor total bytes received across all response messages per RPC.static final Measure.MeasureLongMeasurefor total client received messages.static final Measure.MeasureLongMeasurefor number of response messages received per RPC.static final Measure.MeasureLongMeasurefor total number of retry or hedging attempts excluding transparent retries made during the client call.static final Measure.MeasureDoubleMeasurefor total time of delay while there is no active attempt during the client call.static final Measure.MeasureDoubleMeasurefor gRPC client roundtrip latency in milliseconds.static final Measure.MeasureDoubleMeasurefor total bytes sent per method, recorded real-time as bytes are sent.static final Measure.MeasureDoubleMeasurefor total bytes sent across all request messages per RPC.static final Measure.MeasureLongMeasurefor total client sent messages.static final Measure.MeasureLongMeasurefor number of messages sent in the RPC.static final Measure.MeasureDoubleMeasurefor gRPC server latency in milliseconds.static final Measure.MeasureLongMeasurefor total number of client RPCs ever opened, including those that have not completed.static final TagKeyTag key that represents a client gRPC canonical status.static final Measure.MeasureLongMeasurefor total number of transparent retries made during the client call.static final TagKeyTag key that represents a server gRPC method.static final Measure.MeasureDoubleMeasurefor total bytes received per method, recorded real-time as bytes are received.static final Measure.MeasureDoubleMeasurefor total bytes received across all messages per RPC.static final Measure.MeasureLongMeasurefor total server received messages.static final Measure.MeasureLongMeasurefor number of messages received in each RPC.static final Measure.MeasureDoubleMeasurefor total bytes sent per method, recorded real-time as bytes are sent.static final Measure.MeasureDoubleMeasurefor total bytes sent across all response messages per RPC.static final Measure.MeasureLongMeasurefor total server sent messages.static final Measure.MeasureLongMeasurefor number of messages sent in each RPC.static final Measure.MeasureDoubleMeasurefor gRPC server latency in milliseconds.static final Measure.MeasureLongMeasurefor total number of server RPCs ever opened, including those that have not completed.static final TagKeyTag key that represents a server gRPC canonical status.private static final StringUnit string for millisecond.static final Measure.MeasureLongDeprecated.because error counts can be computed on your metrics backend by totalling the different per-status values.static final Measure.MeasureLongDeprecated.since finished count can be inferred with aCountaggregation onGRPC_CLIENT_SERVER_LATENCY.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_CLIENT_SENT_BYTES_PER_RPC.static final Measure.MeasureLongDeprecated.in favor ofGRPC_CLIENT_SENT_MESSAGES_PER_RPC.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_CLIENT_RECEIVED_BYTES_PER_RPC.static final Measure.MeasureLongDeprecated.in favor ofGRPC_CLIENT_RECEIVED_MESSAGES_PER_RPC.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_CLIENT_ROUNDTRIP_LATENCY.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_CLIENT_SERVER_LATENCY.static final Measure.MeasureLongDeprecated.in favor ofGRPC_CLIENT_STARTED_RPCS.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_CLIENT_SENT_BYTES_PER_RPC.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_CLIENT_RECEIVED_BYTES_PER_RPC.static final TagKeyDeprecated.in favor ofGRPC_CLIENT_METHODandGRPC_SERVER_METHOD.static final Measure.MeasureLongDeprecated.because error counts can be computed on your metrics backend by totalling the different per-status values.static final Measure.MeasureLongDeprecated.since finished count can be inferred with aCountaggregation onGRPC_SERVER_SERVER_LATENCY.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_SERVER_RECEIVED_BYTES_PER_RPC.static final Measure.MeasureLongDeprecated.in favor ofGRPC_SERVER_RECEIVED_MESSAGES_PER_RPC.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_SERVER_SENT_BYTES_PER_RPC.static final Measure.MeasureLongDeprecated.in favor ofGRPC_SERVER_SENT_MESSAGES_PER_RPC.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_SERVER_SERVER_LATENCY.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_SERVER_SERVER_LATENCY.static final Measure.MeasureLongDeprecated.in favor ofGRPC_SERVER_STARTED_RPCS.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_SERVER_RECEIVED_BYTES_PER_RPC.static final Measure.MeasureDoubleDeprecated.in favor ofGRPC_SERVER_SENT_BYTES_PER_RPC.static final TagKeyDeprecated.in favor ofGRPC_CLIENT_STATUSandGRPC_SERVER_STATUS. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
RPC_STATUS
Deprecated.in favor ofGRPC_CLIENT_STATUSandGRPC_SERVER_STATUS.Tag key that represents a gRPC canonical status. Refer to https://github.com/grpc/grpc/blob/master/doc/statuscodes.md.- Since:
- 0.8
-
RPC_METHOD
Deprecated.in favor ofGRPC_CLIENT_METHODandGRPC_SERVER_METHOD.Tag key that represents a gRPC method.- Since:
- 0.8
-
GRPC_CLIENT_STATUS
Tag key that represents a client gRPC canonical status. Refer to https://github.com/grpc/grpc/blob/master/doc/statuscodes.md.GRPC_CLIENT_STATUSis set when an outgoing request finishes and is only available around metrics recorded at the end of the outgoing request.- Since:
- 0.13
-
GRPC_SERVER_STATUS
Tag key that represents a server gRPC canonical status. Refer to https://github.com/grpc/grpc/blob/master/doc/statuscodes.md.GRPC_SERVER_STATUSis set when an incoming request finishes and is only available around metrics recorded at the end of the incoming request.- Since:
- 0.13
-
GRPC_CLIENT_METHOD
Tag key that represents a client gRPC method.GRPC_CLIENT_METHODis set when an outgoing request starts and is available in all the recorded metrics.- Since:
- 0.13
-
GRPC_SERVER_METHOD
Tag key that represents a server gRPC method.GRPC_SERVER_METHODis set when an incoming request starts and is available in the context for the entire RPC call handling.- Since:
- 0.13
-
BYTE
-
COUNT
-
MILLISECOND
-
GRPC_CLIENT_SENT_BYTES_PER_RPC
Measurefor total bytes sent across all request messages per RPC.- Since:
- 0.13
-
GRPC_CLIENT_RECEIVED_BYTES_PER_RPC
Measurefor total bytes received across all response messages per RPC.- Since:
- 0.13
-
GRPC_CLIENT_SENT_BYTES_PER_METHOD
Measurefor total bytes sent per method, recorded real-time as bytes are sent.- Since:
- 0.18
-
GRPC_CLIENT_RECEIVED_BYTES_PER_METHOD
Measurefor total bytes received per method, recorded real-time as bytes are received.- Since:
- 0.18
-
GRPC_CLIENT_SENT_MESSAGES_PER_METHOD
Measurefor total client sent messages.- Since:
- 0.18
-
GRPC_CLIENT_RECEIVED_MESSAGES_PER_METHOD
Measurefor total client received messages.- Since:
- 0.18
-
GRPC_CLIENT_ROUNDTRIP_LATENCY
Measurefor gRPC client roundtrip latency in milliseconds.- Since:
- 0.13
-
GRPC_CLIENT_SENT_MESSAGES_PER_RPC
Measurefor number of messages sent in the RPC.- Since:
- 0.13
-
GRPC_CLIENT_RECEIVED_MESSAGES_PER_RPC
Measurefor number of response messages received per RPC.- Since:
- 0.13
-
GRPC_CLIENT_SERVER_LATENCY
Measurefor gRPC server latency in milliseconds.- Since:
- 0.13
-
GRPC_CLIENT_STARTED_RPCS
Measurefor total number of client RPCs ever opened, including those that have not completed.- Since:
- 0.14
-
GRPC_CLIENT_RETRIES_PER_CALL
Measurefor total number of retry or hedging attempts excluding transparent retries made during the client call.- Since:
- 0.31.0
-
GRPC_CLIENT_TRANSPARENT_RETRIES_PER_CALL
Measurefor total number of transparent retries made during the client call.- Since:
- 0.28
-
GRPC_CLIENT_RETRY_DELAY_PER_CALL
Measurefor total time of delay while there is no active attempt during the client call.- Since:
- 0.28
-
RPC_CLIENT_ERROR_COUNT
Deprecated.because error counts can be computed on your metrics backend by totalling the different per-status values.Measurefor gRPC client error counts.- Since:
- 0.8
-
RPC_CLIENT_REQUEST_BYTES
Deprecated.in favor ofGRPC_CLIENT_SENT_BYTES_PER_RPC.Measurefor gRPC client request bytes.- Since:
- 0.8
-
RPC_CLIENT_RESPONSE_BYTES
Deprecated.in favor ofGRPC_CLIENT_RECEIVED_BYTES_PER_RPC.Measurefor gRPC client response bytes.- Since:
- 0.8
-
RPC_CLIENT_ROUNDTRIP_LATENCY
Deprecated.in favor ofGRPC_CLIENT_ROUNDTRIP_LATENCY.Measurefor gRPC client roundtrip latency in milliseconds.- Since:
- 0.8
-
RPC_CLIENT_SERVER_ELAPSED_TIME
Deprecated.in favor ofGRPC_CLIENT_SERVER_LATENCY.Measurefor gRPC client server elapsed time in milliseconds.- Since:
- 0.8
-
RPC_CLIENT_UNCOMPRESSED_REQUEST_BYTES
Deprecated.in favor ofGRPC_CLIENT_SENT_BYTES_PER_RPC.Measurefor gRPC client uncompressed request bytes.- Since:
- 0.8
-
RPC_CLIENT_UNCOMPRESSED_RESPONSE_BYTES
Deprecated.in favor ofGRPC_CLIENT_RECEIVED_BYTES_PER_RPC.Measurefor gRPC client uncompressed response bytes.- Since:
- 0.8
-
RPC_CLIENT_STARTED_COUNT
Deprecated.in favor ofGRPC_CLIENT_STARTED_RPCS.Measurefor number of started client RPCs.- Since:
- 0.8
-
RPC_CLIENT_FINISHED_COUNT
Deprecated.since finished count can be inferred with aCountaggregation onGRPC_CLIENT_SERVER_LATENCY.Measurefor number of finished client RPCs.- Since:
- 0.8
-
RPC_CLIENT_REQUEST_COUNT
Deprecated.in favor ofGRPC_CLIENT_SENT_MESSAGES_PER_RPC.Measurefor client RPC request message counts.- Since:
- 0.8
-
RPC_CLIENT_RESPONSE_COUNT
Deprecated.in favor ofGRPC_CLIENT_RECEIVED_MESSAGES_PER_RPC.Measurefor client RPC response message counts.- Since:
- 0.8
-
GRPC_SERVER_SENT_BYTES_PER_RPC
Measurefor total bytes sent across all response messages per RPC.- Since:
- 0.13
-
GRPC_SERVER_RECEIVED_BYTES_PER_RPC
Measurefor total bytes received across all messages per RPC.- Since:
- 0.13
-
GRPC_SERVER_SENT_BYTES_PER_METHOD
Measurefor total bytes sent per method, recorded real-time as bytes are sent.- Since:
- 0.18
-
GRPC_SERVER_RECEIVED_BYTES_PER_METHOD
Measurefor total bytes received per method, recorded real-time as bytes are received.- Since:
- 0.18
-
GRPC_SERVER_SENT_MESSAGES_PER_METHOD
Measurefor total server sent messages.- Since:
- 0.18
-
GRPC_SERVER_RECEIVED_MESSAGES_PER_METHOD
Measurefor total server received messages.- Since:
- 0.18
-
GRPC_SERVER_SENT_MESSAGES_PER_RPC
Measurefor number of messages sent in each RPC.- Since:
- 0.13
-
GRPC_SERVER_RECEIVED_MESSAGES_PER_RPC
Measurefor number of messages received in each RPC.- Since:
- 0.13
-
GRPC_SERVER_SERVER_LATENCY
Measurefor gRPC server latency in milliseconds.- Since:
- 0.13
-
GRPC_SERVER_STARTED_RPCS
Measurefor total number of server RPCs ever opened, including those that have not completed.- Since:
- 0.14
-
RPC_SERVER_ERROR_COUNT
Deprecated.because error counts can be computed on your metrics backend by totalling the different per-status values.Measurefor gRPC server error counts.- Since:
- 0.8
-
RPC_SERVER_REQUEST_BYTES
Deprecated.in favor ofGRPC_SERVER_RECEIVED_BYTES_PER_RPC.Measurefor gRPC server request bytes.- Since:
- 0.8
-
RPC_SERVER_RESPONSE_BYTES
Deprecated.in favor ofGRPC_SERVER_SENT_BYTES_PER_RPC.Measurefor gRPC server response bytes.- Since:
- 0.8
-
RPC_SERVER_SERVER_ELAPSED_TIME
Deprecated.in favor ofGRPC_SERVER_SERVER_LATENCY.Measurefor gRPC server elapsed time in milliseconds.- Since:
- 0.8
-
RPC_SERVER_SERVER_LATENCY
Deprecated.in favor ofGRPC_SERVER_SERVER_LATENCY.Measurefor gRPC server latency in milliseconds.- Since:
- 0.8
-
RPC_SERVER_UNCOMPRESSED_REQUEST_BYTES
Deprecated.in favor ofGRPC_SERVER_RECEIVED_BYTES_PER_RPC.Measurefor gRPC server uncompressed request bytes.- Since:
- 0.8
-
RPC_SERVER_UNCOMPRESSED_RESPONSE_BYTES
Deprecated.in favor ofGRPC_SERVER_SENT_BYTES_PER_RPC.Measurefor gRPC server uncompressed response bytes.- Since:
- 0.8
-
RPC_SERVER_STARTED_COUNT
Deprecated.in favor ofGRPC_SERVER_STARTED_RPCS.Measurefor number of started server RPCs.- Since:
- 0.8
-
RPC_SERVER_FINISHED_COUNT
Deprecated.since finished count can be inferred with aCountaggregation onGRPC_SERVER_SERVER_LATENCY.Measurefor number of finished server RPCs.- Since:
- 0.8
-
RPC_SERVER_REQUEST_COUNT
Deprecated.in favor ofGRPC_SERVER_RECEIVED_MESSAGES_PER_RPC.Measurefor server RPC request message counts.- Since:
- 0.8
-
RPC_SERVER_RESPONSE_COUNT
Deprecated.in favor ofGRPC_SERVER_SENT_MESSAGES_PER_RPC.Measurefor server RPC response message counts.- Since:
- 0.8
-
-
Constructor Details
-
RpcMeasureConstants
private RpcMeasureConstants()
-