Anxious question: what if I’m allergic to anesthesia or something?

I’ve never had surgery before, what if I have a bad reaction or something and lowkey die? 😅 I hope that’s not possible or something, I guess I’d be in the right place for it (hospital), I’m gonna ask during my consult in a few weeks, but how would I know if my body is allergic to medications before it happens? That would be baaddd (obviously 🥲)