Medication, analgesia or local anaesthetic that can commonly present themselves during labour and birth are not contraindicated for consuming your placenta. Any traces found in the placenta are not in significant enough quantities to be a problem.
If you birth your baby by c-section, just make sure the midwife looking after you on the day is aware of your wishes and they will usually take your container into theatre with them.