This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
This file contains 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
chriso
reviewed
Jun 1, 2023
Thanks to dispatchrun/wasi-go#33 we have peer socket addresses now:
|
8306a09
to
2ebf195
Compare
This was referenced Jun 3, 2023
Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
Updated output:
or with the verbose option:
|
Signed-off-by: Achille Roussel <[email protected]>
I think this is good to go as-is for now; we've talked about the limitations of the current model to get higher level context:
|
chriso
approved these changes
Jun 6, 2023
Signed-off-by: Achille Roussel <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This is the beginning of a some work on network tracing tools in timecraft.
I implemented a
stream.Reader
which consumes records from an underlying reader and produces a stream of network trace events.Here's an example of the output it generates:
Currently hitting some limitations:
It would be really useful to have the network address captured in
sock_accept
. WASI doesn't expose it in the signature but since we have an abstraction layer between the system and the ABI, maybe we could add the network address while maintaining ABI compatibility? Without this information we rely on hoping that the application will callsock_local_address
to have it recorded in the log, which is not ideal.There seems to be a bug somewhere in our code where the size encoded or decode in
fd_read
calls is -1, and errno is 0. There is valid content associated with the call so it seems that it might just be the size value that is invalid. Let's not exclude that the bug could come from this PR as well.Still working on it but opening to share progress, feel free to give early feedback as well!