Merge tracing framework