Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7462e commit 360d3d2Copy full SHA for 360d3d2
google/cloud/logging_v2/handlers/_monitored_resources.py
@@ -73,7 +73,7 @@ def _create_functions_resource():
73
labels={
74
"project_id": project,
75
"function_name": function_name,
76
- "region": region if region else "",
+ "region": region.split("/")[-1] if region else "",
77
},
78
)
79
return resource
@@ -131,7 +131,7 @@ def _create_cloud_run_resource():
131
132
"service_name": os.environ.get(_CLOUD_RUN_SERVICE_ID, ""),
133
"revision_name": os.environ.get(_CLOUD_RUN_REVISION_ID, ""),
134
- "location": region if region else "",
+ "location": region.split("/")[-1] if region else "",
135
"configuration_name": os.environ.get(_CLOUD_RUN_CONFIGURATION_ID, ""),
136
137
0 commit comments