mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Don't emit process name and domain from procspy.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user