Library wrapper and system-level tracing utilities