dynatrace-oss / nettracer-bpf

This module allows 3rd party solutions (including Dynatrace OneAgent) to offer event driven monitoring of network traffic on Linux/Unix kernels.
Apache License 2.0
28 stars 5 forks source link

Add test mode and improve error handling #21

Closed pijuszczyk closed 2 years ago

pijuszczyk commented 2 years ago

I've added a test mode that basically makes NetTracer only perform initial setup without further monitoring network so that it can be easily used to verify if NetTracer can start correctly. I've also added a new command line option to disable logging to files and overhauled the way errors are handled, by checking in more places for errors, improving messages, adding a specialized exception and returning more than 0/1 return codes from main.