Skip to content

Commit 248bde5

Browse files
committed
chore: location for gke
1 parent 2e1329e commit 248bde5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/BuiltInOpenTelemetryMetricsProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static String detectClientLocation() {
9494
// All platform except GKE uses "cloud_region" for region attribute.
9595
String region = detectedPlatform.getAttributes().get("cloud_region");
9696
if (detectedPlatform.getSupportedPlatform() == GOOGLE_KUBERNETES_ENGINE) {
97-
region = detectedPlatform.getAttributes().get(AttributeKeys.GKE_LOCATION_TYPE_REGION);
97+
region = detectedPlatform.getAttributes().get(AttributeKeys.GKE_CLUSTER_LOCATION);
9898
}
9999
return region == null ? "global" : region;
100100
}

0 commit comments

Comments
 (0)