After 1.1.0, I see we can use PINBA_FLUSH_RESET_DATA with pinba_flush(). But I'd like to have pinba_clean() as well.
I have this scenario:
I start a long running script. In that script, I do many jobs but I only wants to get the data (tags, timer, etc) for each job. I don't want to get the data while initiating the script (before executing jobs) and shutting down (after finishing all the jobs). So as I understand, If I use pinba_flush() after initiating and before executing jobs, it'll send data to pinba server, same for shutting down with pinba.auto_flush. I don't need those data. Therefore, I need pinba_clean() and use it before executing jobs.
Hi,
After
1.1.0
, I see we can usePINBA_FLUSH_RESET_DATA
withpinba_flush()
. But I'd like to havepinba_clean()
as well.I have this scenario:
I start a long running script. In that script, I do many jobs but I only wants to get the data (tags, timer, etc) for each job. I don't want to get the data while initiating the script (before executing jobs) and shutting down (after finishing all the jobs). So as I understand, If I use
pinba_flush()
after initiating and before executing jobs, it'll send data to pinba server, same for shutting down withpinba.auto_flush
. I don't need those data. Therefore, I needpinba_clean()
and use it before executing jobs.Is it ok? What do you think?
Thanks in advance