In Il2 I have my gun sight and normal views mapped to one of the hats on my Joystick. When I'm in a situation where I need to use the gun sight i'm fairly well concentrating on the target any way so I not really paying attention to much else so the situational awareness isn't much of an issue for me.
If there's tracers wizzing passed my cockpit then it's my team mates shoulder shooting or an extremely bad shot!

Either way it's time to go back to normal view and assess the situation!