We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e1329e commit 248bde5Copy full SHA for 248bde5
google-cloud-spanner/src/main/java/com/google/cloud/spanner/BuiltInOpenTelemetryMetricsProvider.java
@@ -94,7 +94,7 @@ static String detectClientLocation() {
94
// All platform except GKE uses "cloud_region" for region attribute.
95
String region = detectedPlatform.getAttributes().get("cloud_region");
96
if (detectedPlatform.getSupportedPlatform() == GOOGLE_KUBERNETES_ENGINE) {
97
- region = detectedPlatform.getAttributes().get(AttributeKeys.GKE_LOCATION_TYPE_REGION);
+ region = detectedPlatform.getAttributes().get(AttributeKeys.GKE_CLUSTER_LOCATION);
98
}
99
return region == null ? "global" : region;
100
0 commit comments