Use service name as debuggee id on gke#275
Use service name as debuggee id on gke#275matthewloring merged 1 commit intogoogleapis:masterfrom matthewloring:gke-id
Conversation
src/agent/debuglet.js
Outdated
| return callback(null, project, onGCP); | ||
| metadata.instance( | ||
| 'attributes/cluster-name', function(err, response, metadataCluster) { | ||
| return callback(null, project, metadataCluster, onGCP); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/agent/debuglet.js
Outdated
| Debuglet.createDebuggee = | ||
| function(projectId, uid, serviceContext, sourceContext, description, | ||
| errorMessage, onGCP) { | ||
| errorMessage, onGCP, clusterName) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
PTAL. |
|
This change broke the debugee ID on App Engine Flexible (and probably raw GCE as well). There won't be a cluster-name attribute for non GKE clusters and the code ignores the "err" from the instance metadata get which causes the 404 error message to be supplied as the module name see: d3994f8#diff-c22bef9d940a3ddb15ce23102dac9da6R354 metadata.instance( This will then create a debugger target with this 404 error message embedded right in the description as well as losing the "version" information: Thanks for correcting. |
This reverts commit d3994f8 as it breaks on non-GKE GCP enviornments. See: googleapis#275 (comment)
This reverts commit d3994f8 as it breaks on non-GKE GCP enviornments. See: #275 (comment)
|
Thanks for reporting. Reverted in #278. |
|
The fix has been released in version 2.1.1. |
commit 69106322b587bc6152199cdc0ec9b70f47afba03 Author: Dominic Kramer <[email protected]> Date: Mon Jun 19 13:51:32 2017 -0700 Convert debuglet.ts to use Typescript classes The conversion now includes the changes in PR googleapis#278 that reverts PR googleapis#275 (Use service name as debuggee id on gke). commit afa5e7e5a5df2534e9265f01df61aed6d8b11327 Author: Dominic Kramer <[email protected]> Date: Mon Jun 19 13:48:46 2017 -0700 Rename debuglet.js to debuglet.ts
No description provided.