Electric traps dont share xp with the party if the traps were placed before the person has the perk for xp from electric trap kills.
Still will get perk owner xp after the fact but game will not share the xp to party members.