Look to see if your school has a mentor program, if not you can contact your states osteopathic association and they will most likely have a mentor program.
As far as how long you need to shadow, enough that the doctor will feel like they know you enough to write the letter but also so that you can talk about it if it comes up during your interviews.