five week old only at the breast for 5 to 10 minutes

Ch
My five week old. Will only  stay at the breast for 5 to 10 minutes before falling asleep it doesn't matter if she has eaten in an hour or she hasn't eaten in three hours she's gaining weight good is it OK to let her continue this way or should I try to get her to stay on the breast longer?