-
Notifications
You must be signed in to change notification settings - Fork 904
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
Rebase of PR #7556 #7803
Rebase of PR #7556 #7803
Conversation
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.
ACK 73e83c6
This might require an update mocks call, the flake build is failing in run route overlong not having the mocks for tracing related functions. |
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.
One nit, that I thought I had fixed in #7556, but apparently not.
plugins/libplugin.c
Outdated
|
||
/* Annotate the JSON-RPC span whether it succeeded or failed, | ||
* and then emit it. */ | ||
trace_span_tag(out, "error", contenttok == NULL ? "true" : "false"); |
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 needs to be the other way around
trace_span_tag(out, "error", contenttok == NULL ? "true" : "false"); | |
trace_span_tag(out, "error", contenttok == NULL ? "false" : "true"); |
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.
That's two negatives. I will change it to contenttok ? "true" : "false"
The `send_outreq` function is a good place to suspend and resume traces, since these are usually the places where we hand off control back to the `io_loop`. This assumes that we do not continue doing heavy liftin after we have queued an `outreq` call, but that is most likely the case anyway. This frees us from having to track suspensions whenever we call the RPC from a plugin.
73e83c6
to
e8914b3
Compare
Changelog-Added: Plugins: `pay` now has tracing support for various payment steps.
e8914b3
to
b65fcbe
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.
ACK b65fcbe
Unrelated faulure inside the CI
merging this, and opening an issue for the CI faulure |
087a29b
into
ElementsProject:master
I think this:
Closes: #7575
Closes: #7556 ?