Converts this to a Trace.
The trace version of a chain is just the concatenation of all the traces in the chain.
Trace toTrace() => new Trace(traces.expand((trace) => trace.frames));