Discovering a Trace