tracee-ebpf: Error handling is hard from outside tracee class #1131
Replies: 3 comments 2 replies
-
The current way to handle events outside of tracee is to use the |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what you are suggesting instead, can you please elaborate? |
Beta Was this translation helpful? Give feedback.
-
My point is that if tracee is divided to sub-packages we want to keep track of all the error. |
Beta Was this translation helpful? Give feedback.
-
It seems that the
tracee.handleError()
method is the legitimate way to handle errors.However, because it is a method of tracee it makes it hard to use in independent packages, which can have their own errors.
In my opinion we should aspire to divide the tracee package to more packages and this is one of the things holding us back.
I think a error handling class should be introduced and other classes will be given pointer to it.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions