So I just encountered for the first time a Duergar in the Underdark using Glyph of Warding, and he just threw it down at my feet and blasted me with it. This couldn't more wrong; the spell in actual D&D takes a full hour to cast, it's not intended for casting during combat at all, it's a trap spell.

While I can understand that obviously the game doesn't want to have long casting time spells, this should at the very least be made a spell that can't be used during combat (similar to some abilities like Arcane Recovery that can't be used in combat). To compensate for this, for as long as they have one or more glyphs active the player should gain a toggle that lets them select whether glyphs should be triggered by hostile creatures only, or will be triggered by anything (possibly excluding small creatures like rats etc.?) so that it can be more easily utilised to handle patrolling guards and such.