-
Notifications
You must be signed in to change notification settings - Fork 232
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
WIP Correlate sent errors with received errors. #2037
WIP Correlate sent errors with received errors. #2037
Conversation
f7129b7
to
df9d954
Compare
df9d954
to
89016fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, glad that tests pass. 💯
the changes look good to me, but I would need to see how they affect what the user sees. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems good. How hard would it be to add a command-line flag to turn this reporting on or off? If it's as verbose as you imply, it would be nice to only get it when someone is tracking a problem down. (Though how many of our developers would know where to turn on the flag?)
https://github.com/Agoric/agoric-sdk/pull/2037/files#r526533669 |
I report progress at Agoric/dapp-fungible-faucet#10 (comment) Without the |
Merging as per discussion in this morning's meeting. |
This is a delta to the hackathon branch as a temporary approximation of a future change.
When sending errors over marshal, generate an errorId to uniquely identify this error sending and use
assert.note
to associate that errorId with both the error as sent and the copy of that error as received. Somehow remember the association of that errorId with the sent error so that the sent error's hidden debug information --- details and stack trace --- can be correlated with the received error, should the received error be reported.As a temporary stopgap for the hackathon, this PR takes the following shortcuts:
This is currently a WIP Draft because it does not yet have new tests for this functionality.