Actually register the trace.