diff --git a/probe/spy.go b/probe/spy.go index 2e9c66d90..72e6bcb24 100644 --- a/probe/spy.go +++ b/probe/spy.go @@ -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 diff --git a/probe/spy_test.go b/probe/spy_test.go index c2574c7d4..3ef351381 100644 --- a/probe/spy_test.go +++ b/probe/spy_test.go @@ -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)