Add support for detained trace.
Add doc.