ipc/stream: Correctly associate VIF-dialing and VC handshaking with
the attempt to create a flow.

Prior to this change, the span used by InternalNewDialedVIF
and HandshakeDialedVC was the parent span of the flow creation,
leading to traces like:

Span - <client>tryCreateFlow [id: 2655000b parent 2655000a] (14.671588ms, 2.467000711s)
    @14.684954ms address:/ns.dev.v.io:8101/applicationd
Span - InternalNewDialedVIF [id: 2655000c parent 2655000a] (619.687107ms, 2.173953565s)
    @619.710552ms (tcp, 23.236.61.112:8101)
...
Span - vc.HandshakeDialedVC [id: 26550063 parent 2655000a] (2.174009677s, 2.466984928s)

With this, the VIF/VC creation that is initiated because of a flow
becomes a child span leading to traces like (notice the change in
indentation):

Span - <client>tryCreateFlow [id: 2b01000b parent 2b01000a] (13.130956ms, 2.224585885s)
    @13.141539ms address:/ns.dev.v.io:8101/applicationd
    Span - InternalNewDialedVIF [id: 2b01000c parent 2b01000b] (559.015204ms, 1.867401128s)
        @559.04892ms (tcp, 23.236.61.112:8101)
    ...
    Span - vc.HandshakeDialedVC [id: 2b010063 parent 2b01000b] (1.867443798s, 2.224575586s)
        @1.867450636s @3@@ns.dev.v.io:8101@00000000000000000000000000000000@@@m@@

Change-Id: I4d18b5456a078180145b00490a52de3a0ee54042
1 file changed
tree: 4c1346ce477e3c88475444ab33cd64a2033e250c
  1. lib/
  2. profiles/
  3. runtimes/
  4. security/
  5. services/
  6. tools/