This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
Add region in the Debuggee labels for GCF envionrment #950
Labels
api: clouddebugger
Issues related to the googleapis/cloud-debug-nodejs API.
triage me
I really want to be triaged.
Background
Cloud Functions (GCF) deployments exist within the context of a cloud region. And a GCF instance can only be uniquely identified by function name + version + region. Currently the Debuggee labels contain the function name and version, but lack region, so it is not possible to identify a 1-to-1 mapping between a Debuggee and a GCF instance.
This feature request is to add the region into the Debuggee labels. It is part of the effort for better integration between Cloud Debugger and Cloud Functions.
Implementation note
Currently the function name + version are read from the environment variables, but the region is not available in newer GCF runtime. So the region needs to be pulled from GCP metadata service.
The text was updated successfully, but these errors were encountered: