trace identification refactoring (2)

Associate viewers to trace instances, instead of trace types.

Bug: 322803923
Test: npm run test:presubmit
Change-Id: I9b686ca3e984dbcc148d0af94c6544f801b99388
36 files changed