My daughter managed to snap this on our way to school. It's a female ichneumon wasp (Megarhyssa macrurus?) that parasitises bug larvae in decaying wood with that absurdly long ovipositor.