Don't emit process name and domain from procspy.

This commit is contained in:
Tom Wilkie
2015-06-17 13:01:56 +00:00
parent c764164d83
commit 786a1588ea
2 changed files with 1 additions and 7 deletions

View File

@@ -79,10 +79,6 @@ func addConnection(
"addr": c.LocalAddress.String(),
"port": strconv.Itoa(int(c.LocalPort)),
"pid": fmt.Sprintf("%d", c.Proc.PID),
// TODO: These can go away once we derives process graph from process topology
"name": c.Proc.Name,
"domain": hostID,
}
r.Endpoint.NodeMetadatas[scopedLocal] = md

View File

@@ -124,9 +124,7 @@ func TestSpyWithProcesses(t *testing.T) {
}
for key, want := range map[string]string{
"domain": nodeID,
"name": fixProcessName,
"pid": strconv.FormatUint(uint64(fixProcessPID), 10),
"pid": strconv.FormatUint(uint64(fixProcessPID), 10),
} {
if have := r.Endpoint.NodeMetadatas[scopedLocal][key]; want != have {
t.Errorf("Process.NodeMetadatas[%q][%q]: want %q, have %q", scopedLocal, key, want, have)