Allegro's Hall-effect current sensors are interesting small ICs, with 1.1kV-peak electrical isolation from the current-carrying wire,
I bring this up only because I found an Allegro app note with a fascinating illustration of the construction of these ICs,