Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit 98ae44e

Browse files
mctavishcopybara-github
authored andcommitted
Add support for Cloud Run environment variables.
The Python debug agent will now: Use K_SERVICE to populate the service context (if available). Use K_REVISION to populate the version context (if available). PiperOrigin-RevId: 235231863 Change-Id: Ia0cba9465b2b0b44f86411ae5692d41c184e353c
1 parent 2b2c1f7 commit 98ae44e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/googleclouddebugger/gcp_hub_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@
5656
# a map is optional environment variable that can be used to set the flag
5757
# (flags still take precedence).
5858
_DEBUGGEE_LABELS = {
59-
labels.Debuggee.MODULE: ['GAE_SERVICE', 'GAE_MODULE_NAME'],
60-
labels.Debuggee.VERSION: ['GAE_VERSION', 'GAE_MODULE_VERSION'],
59+
labels.Debuggee.MODULE: ['GAE_SERVICE', 'GAE_MODULE_NAME', 'K_SERVICE'],
60+
labels.Debuggee.VERSION: [
61+
'GAE_VERSION', 'GAE_MODULE_VERSION', 'K_REVISION'
62+
],
6163
labels.Debuggee.MINOR_VERSION: ['GAE_DEPLOYMENT_ID', 'GAE_MINOR_VERSION']
6264
}
6365

0 commit comments

Comments
 (0)