-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Implement LoggingAsync for GRPC Worker Services #14604
Conversation
Can one of the admins verify this patch? |
Reassigning this to @prb12, since he knows the ins and outs of the logging path better than I do. A few quick observations though:
|
- Revert changes to *_rendezvous_mgr - Implement logging primitives in session_mgr instead - Implement ClearLogs - Fixed C++ formating
Thanks @mrry for the feed back:
|
@xldrx can you look into the merge conflicts. |
Hey @sb2nov, |
session_mgr->SetLogging(request->rpc_logging()); | ||
if (request->clear()) { | ||
session_mgr->ClearLogs(); | ||
} |
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.
If both clear
and fetch_step_id
are used the semantics are unclear, but I would have thought it made more sense to retrieve any previously collected data before clearing?
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.
Great observation. Fixed.
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.
Thanks for addiing this!
With regard to an additional TRACE_LEVEL - I don't think that this is likely to be a problem.
I'm assuming this doesn't have a noticeable performance impact when tracing is not enabled?
One minor question about the case where clear and retrieve are done at the same time.
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
…e sent to "LogAsync." nullptr check on default_worker_cache_.
CLAs look good, thanks! |
@prb12 Thanks for the review.
This PR does nothing when tracing is not enabled.
Great observation. Fixed. |
@xldrx This appears to have numerous broken tests. Can you please take a look? |
@xldrx Thanks for the contribution! |
This allow RecvTensor events to show up in StepStats and in turn in Chrome Tracing format.