How long should I breastfeed

Seems like my newborn falls asleep from only one side after 10 mins then gets burped, and goes to sleep not wanting the other breast even after I offer it. About how long should I breastfeed on each side to ensure she’s getting enough? I’ll try to keep baby awake