Background tracing: Simplify public interface and isolate trigger logic