Root privileges

I have created an AppImage for my application (GitHub - fizzyade/pingnoo: An open source ping analyser) but I’m wondering how to handle the requirement of root privileges.

My application is traceroute/ping analyser and it creates and sends ICMP packets directly, this requires root privileges to send the packets.

Does anybody have any idea on the best way to go about handling this?