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

Adds TracingSpan() and logging to CRPCTable::execute to log elapsed rpc execution time. #6833

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elijahhampton
Copy link

@elijahhampton elijahhampton commented Feb 15, 2024

The pull request adds logging for the completion of RPC methods detailing the elapsed execution time from the start of the execution function to a successful execution.

Issue: #5551

src/rpc/server.cpp Outdated Show resolved Hide resolved
Comment on lines +471 to +472
auto span = TracingSpan("info", "rpc", "Execute", "method", strMethod.c_str());
auto spanGuard = span.Enter();
Copy link
Collaborator

@LarryRuane LarryRuane Feb 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two lines don't seem to be necessary. I think they're for when one thread can start a timer and possibly different thread ends the timing interval. But @str4d will know for sure.

Co-authored-by: Larry Ruane <larryruane@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants