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

Commit 73e7a99

Browse files
committed
fix(spanner): resolve TypeError in metrics resource detection
1 parent a09961b commit 73e7a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/spanner_v1/metrics/spanner_metrics_tracer_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,4 @@ def _get_location() -> str:
169169
if GOOGLE_CLOUD_REGION_KEY not in resources.attributes:
170170
return GOOGLE_CLOUD_REGION_GLOBAL
171171
else:
172-
return resources[GOOGLE_CLOUD_REGION_KEY]
172+
return resources.attributes[GOOGLE_CLOUD_REGION_KEY]

0 commit comments

Comments
 (0)