Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log operations #19

Open
harnen opened this issue Oct 7, 2022 · 0 comments
Open

Log operations #19

harnen opened this issue Oct 7, 2022 · 0 comments
Assignees

Comments

@harnen
Copy link
Collaborator

harnen commented Oct 7, 2022

Currently, we write all the messages to a csv file but we don't know how they're a part of an operation. To fix that, we should log operations as well. This should be designed for the Find Operation and we can later extend it other types as well.

To complete this task we need:

  1. Keep a time when an operations started
  2. Keep IDs of all the messages that were sent within this operations
  3. Record the time of operation termination
  4. Report the operation to Kademlia Observer. We already have a system built for writing everything to files, so it's enough to create a map that contains feature -> value mapping (a similar thing is done for messages).

The final CSV file should look something like that:

id,src,type,messages, start, stop
3640,1294132996371968615893927407296059812556716358774,OP_FIND,3640|2306|3638,55,87
@harnen harnen assigned harnen and Countermatt and unassigned harnen Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants