Repository navigation
Add option to avoid killing the extractor - #187
Merged
Merged
Conversation
Adds a command line flag `no_idle_exit` to avoid having the extractor process to finish in case it doesn't detect messages for a while. Keeps the default behavior, so this option is opt-in. When developing and testing, it's useful to manually generate traffic and inspect the components of the monitoring pipeline. Since this is a slow process, the extractor keeps finishing.`
Contributor
Author
|
Snippet of the working logs: |
Collaborator
|
Thanks, makes sense to have this for development and debugging! ACK |
0xB10C
reviewed
Aug 11, 2025
Comment on lines
+183
to
+185
| // The extractor tool will exit if it doesn't detect activity in the ebpf | ||
| // buffers for 180 seconds. This flag disables this and only emits warnings | ||
| // about inactivity. This can be useful during debugging. |
Collaborator
There was a problem hiding this comment.
For clap to pick these up as argument docs shown with --help, these need to be three /.
fixing this in #216
Suggested change
| // The extractor tool will exit if it doesn't detect activity in the ebpf | |
| // buffers for 180 seconds. This flag disables this and only emits warnings | |
| // about inactivity. This can be useful during debugging. | |
| /// The extractor tool will exit if it doesn't detect activity in the ebpf | |
| /// buffers for 180 seconds. This flag disables this and only emits warnings | |
| /// about inactivity. This can be useful during debugging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a command line flag
-no_idle_exitto avoid having the extractor process to finish in case it doesn't detect messages for a while. Keeps the default behavior, so this option is opt-in.When developing and testing, it's useful to manually generate traffic and inspect the components of the monitoring pipeline. Since this is a slow process, the extractor keeps finishing.`
This makes development and testing easier. In https://github.com/ClubeBitcoinUnB/peer-observer-docker we are playing with generating manual traffic on regtest, but the extractor keeps killing itself.