Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit 72b7e39

Browse files
authored
Add Javadocs for tag keys in RpcMeasureConstants.java (#932)
* Add Javadocs for tag keys in RpcMeasureConstants.java * Add a link to gRPC status doc
1 parent bff3c2f commit 72b7e39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/grpc_metrics/src/main/java/io/opencensus/contrib/grpc/metrics/RpcMeasureConstants.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
public final class RpcMeasureConstants {
2626

2727
// Rpc tag keys.
28+
/**
29+
* Tag key that represents a gRPC canonical status. Refer to
30+
* https://github.com/grpc/grpc/blob/master/doc/statuscodes.md.
31+
*/
2832
public static final TagKey RPC_STATUS = TagKey.create("canonical_status");
33+
/** Tag key that represents a gRPC method. */
2934
public static final TagKey RPC_METHOD = TagKey.create("method");
3035

3136
// Constants used to define the following Measures.

0 commit comments

Comments
 (0)