Repository navigation
Implement log extractor - #272
Conversation
|
Creating this Draft just to @edilmedeiros take a look, but feel free to take a look too @0xB10C. It still a WIP I will mark as ready when its done. |
|
Nice, looks good for a start! Sorry for the conflicts, I was refactoring some parts yesterday. Let me know if you need help rebasing it. |
7f26fad to
0a0446d
Compare
|
oh sh... I forgot that this repo has actions that run the tests, I got a problem with mine not stopping correctly, so problably these actions will timeout (6h from what I searched). If you see this and they still running, you can stop it @0xB10C. |
0xB10C
left a comment
There was a problem hiding this comment.
Had an early look, but didn't do any testing yet. Left a few comments.
Overall, looks good and very clean. Thank you a lot!
Plan to look at this in more detail in the next week.
| package log_extractor; | ||
|
|
||
| message LogEvent { | ||
| required uint64 timestamp = 1; |
There was a problem hiding this comment.
hm, we already have a timestamp in EventMsg. I wonder if we should just set this one instead of adding another one here.
There was a problem hiding this comment.
(I agree that the timestamp_subsec_micros is a bit weird, I should probably refactor that!)
There was a problem hiding this comment.
This timestamp you talking about is related to when the extractor is publishing that event, right? This one from LogEvent is the one that appears in the actual log and it could be different from the one in EventMsg, maybe I should've specified in its name 🤔... Is it reason enough to maintain it? maybe named like log_timestamp?
|
Don't know why but ubuntu action throw at build with a unused value that it is used, and the nix one did build correctly ¯\_(ツ)_/¯ |
|
I haven't forgotten about this and plan to get to it as soon as I have time!
I'll have a look! Also, one thing that came to my mind was that I run my nodes with |
Added support for this option, it was really going to not match with the regex that I made. // log_extractor.proto
required uint64 log_timestamp = 1; // unix timestamp in seconds
required uint32 log_timestamp_micro = 2; // microseconds part of the timestampI separatted in another field on proto because it doesn't have a |
I think we can just do Planning to play around with this PR this week. |
6b2d77f to
c645b27
Compare
-logsourcelocations=0 -logips=1 -logthreadnames=1 -logtimemicros=1
|
Ok, this seems to be good to go from my side. I haven't worked on adding this to my setup yet, but that can happen later. Possible followup ideas:
@m4ycon let me know if you think anything else needs to be done here! |
|
Two more things that came to mind:
|
|
coverage report: |
Nothing that should be done in this PR, but I would like to add some points in your list:
It's interesting to say that Also I'll work on mutated block related logs, as it was the reason I was helping with the log extractor here hehe. |
No description provided.