Add a graph builder that listens trace events.