api-trace.txt: add trace API documentation