Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit bdf3989

Browse files
committed
Fix
1 parent 8a3f877 commit bdf3989

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/metrics/BuiltinMetricsConstants.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ public class BuiltinMetricsConstants {
5656
static final AttributeKey<String> TRANSPORT_SUBZONE = AttributeKey.stringKey("transport_subzone");
5757

5858
// gRPC attribute keys
59+
// Note that these attributes keys from transformed from
60+
// A.B.C to A_B_C before exporting to Cloud Monitoring.
5961
static final AttributeKey<String> GRPC_LB_BACKEND_SERVICE_KEY =
60-
AttributeKey.stringKey("grpc_lb_backend_service");
62+
AttributeKey.stringKey("grpc.lb.backend_service");
6163
static final AttributeKey<String> GRPC_DISCONNECT_ERROR_KEY =
62-
AttributeKey.stringKey("grpc_disconnect_error");
64+
AttributeKey.stringKey("grpc.disconnect_error");
6365
static final AttributeKey<String> GRPC_LB_LOCALITY_KEY =
64-
AttributeKey.stringKey("grpc_lb_locality");
65-
static final AttributeKey<String> GRPC_TARGET_KEY = AttributeKey.stringKey("grpc_target");
66+
AttributeKey.stringKey("grpc.lb.locality");
67+
static final AttributeKey<String> GRPC_TARGET_KEY = AttributeKey.stringKey("grpc.target");
6668
static final AttributeKey<String> GRPC_SECURITY_LEVEL_KEY =
67-
AttributeKey.stringKey("grpc_security_level");
69+
AttributeKey.stringKey("grpc.security_level");
6870
static final AttributeKey<String> GRPC_METHOD_KEY = AttributeKey.stringKey("grpc.method");
6971
static final AttributeKey<String> GRPC_STATUS_KEY = AttributeKey.stringKey("grpc.status");
7072
static final AttributeKey<String> GRPC_LB_RLS_DATA_PLANE_TARGET_KEY =

0 commit comments

Comments
 (0)